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
ConstructorsConstructorDescriptionRedissonCache(RMap<Object, Object> map, boolean allowNullValues) RedissonCache(RMapCache<Object, Object> mapCache, CacheConfig config, boolean allowNullValues) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidbooleanevictIfPresent(Object key) protected ObjectfromStoreValue(Object storeValue) org.springframework.cache.Cache.ValueWrapper<T> T<T> TgetName()RMap<?, ?> booleanvoidorg.springframework.cache.Cache.ValueWrapperputIfAbsent(Object key, Object value) <T> CompletableFuture<T> retrieve(Object key, Supplier<CompletableFuture<T>> valueLoader) protected ObjecttoStoreValue(Object userValue)
-
Constructor Details
-
RedissonCache
public RedissonCache(RMapCache<Object, Object> mapCache, CacheConfig config, boolean allowNullValues) -
RedissonCache
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceorg.springframework.cache.Cache
-
getNativeCache
- Specified by:
getNativeCachein interfaceorg.springframework.cache.Cache
-
get
- Specified by:
getin interfaceorg.springframework.cache.Cache
-
get
- Specified by:
getin interfaceorg.springframework.cache.Cache
-
put
- Specified by:
putin interfaceorg.springframework.cache.Cache
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceorg.springframework.cache.Cache
-
evict
- Specified by:
evictin interfaceorg.springframework.cache.Cache
-
evictIfPresent
- Specified by:
evictIfPresentin interfaceorg.springframework.cache.Cache
-
retrieve
- Specified by:
retrievein interfaceorg.springframework.cache.Cache
-
retrieve
- Specified by:
retrievein interfaceorg.springframework.cache.Cache
-
clear
public void clear()- Specified by:
clearin interfaceorg.springframework.cache.Cache
-
invalidate
public boolean invalidate()- Specified by:
invalidatein interfaceorg.springframework.cache.Cache
-
get
- Specified by:
getin interfaceorg.springframework.cache.Cache
-
fromStoreValue
-
toStoreValue
-