Package org.redisson.spring.cache
Class RedissonCache
java.lang.Object
org.redisson.spring.cache.RedissonCache
- All Implemented Interfaces:
org.springframework.cache.Cache
- Author:
- Nikita Koksharov
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.cache.Cache
org.springframework.cache.Cache.ValueRetrievalException, org.springframework.cache.Cache.ValueWrapper
-
Constructor Summary
ConstructorDescriptionRedissonCache
(RMap<Object, Object> map, boolean allowNullValues) RedissonCache
(RMapCache<Object, Object> mapCache, CacheConfig config, boolean allowNullValues) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
void
protected Object
fromStoreValue
(Object storeValue) org.springframework.cache.Cache.ValueWrapper
<T> T
<T> T
getName()
RMap<?,
?> void
org.springframework.cache.Cache.ValueWrapper
putIfAbsent
(Object key, Object value) protected Object
toStoreValue
(Object userValue) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.cache.Cache
evictIfPresent, invalidate
-
Constructor Details
-
RedissonCache
public RedissonCache(RMapCache<Object, Object> mapCache, CacheConfig config, boolean allowNullValues) -
RedissonCache
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceorg.springframework.cache.Cache
-
getNativeCache
- Specified by:
getNativeCache
in interfaceorg.springframework.cache.Cache
-
get
- Specified by:
get
in interfaceorg.springframework.cache.Cache
-
get
- Specified by:
get
in interfaceorg.springframework.cache.Cache
-
put
- Specified by:
put
in interfaceorg.springframework.cache.Cache
-
putIfAbsent
- Specified by:
putIfAbsent
in interfaceorg.springframework.cache.Cache
-
evict
- Specified by:
evict
in interfaceorg.springframework.cache.Cache
-
clear
public void clear()- Specified by:
clear
in interfaceorg.springframework.cache.Cache
-
get
- Specified by:
get
in interfaceorg.springframework.cache.Cache
-
fromStoreValue
-
toStoreValue
-