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