Package org.redisson.spring.cache
Class RedissonCache
- java.lang.Object
-
- org.redisson.spring.cache.RedissonCache
-
- All Implemented Interfaces:
org.springframework.cache.Cache
public class RedissonCache extends Object implements org.springframework.cache.Cache
- Author:
- Nikita Koksharov
-
-
Constructor Summary
Constructors Constructor Description RedissonCache(RMap<Object,Object> map, boolean allowNullValues)
RedissonCache(RMapCache<Object,Object> mapCache, CacheConfig config, boolean allowNullValues)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
void
evict(Object key)
protected Object
fromStoreValue(Object storeValue)
org.springframework.cache.Cache.ValueWrapper
get(Object key)
<T> T
get(Object key, Class<T> type)
<T> T
get(Object key, Callable<T> valueLoader)
String
getName()
RMap<?,?>
getNativeCache()
void
put(Object key, Object value)
org.springframework.cache.Cache.ValueWrapper
putIfAbsent(Object key, Object value)
protected Object
toStoreValue(Object userValue)
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceorg.springframework.cache.Cache
-
getNativeCache
public RMap<?,?> getNativeCache()
- Specified by:
getNativeCache
in interfaceorg.springframework.cache.Cache
-
get
public org.springframework.cache.Cache.ValueWrapper get(Object key)
- Specified by:
get
in interfaceorg.springframework.cache.Cache
-
get
public <T> T get(Object key, Class<T> type)
- Specified by:
get
in interfaceorg.springframework.cache.Cache
-
put
public void put(Object key, Object value)
- Specified by:
put
in interfaceorg.springframework.cache.Cache
-
putIfAbsent
public org.springframework.cache.Cache.ValueWrapper putIfAbsent(Object key, Object value)
- Specified by:
putIfAbsent
in interfaceorg.springframework.cache.Cache
-
evict
public void evict(Object key)
- Specified by:
evict
in interfaceorg.springframework.cache.Cache
-
clear
public void clear()
- Specified by:
clear
in interfaceorg.springframework.cache.Cache
-
get
public <T> T get(Object key, Callable<T> valueLoader)
- Specified by:
get
in interfaceorg.springframework.cache.Cache
-
-