类 RedissonCache
java.lang.Object
cn.taketoday.cache.RedissonCache
- 所有已实现的接口:
cn.taketoday.cache.Cache
- 从以下版本开始:
- 2019-02-28 18:30
- 作者:
- Nikita Koksharov, TODAY
-
嵌套类概要
从接口继承的嵌套类/接口 cn.taketoday.cache.Cache
cn.taketoday.cache.Cache.ValueRetrievalException, cn.taketoday.cache.Cache.ValueWrapper -
字段概要
字段修饰符和类型字段说明private final booleanprivate CacheConfigprivate final AtomicLongprivate final AtomicLongprivate final AtomicLong -
构造器概要
构造器构造器说明RedissonCache(org.redisson.api.RMap<Object, Object> map, boolean allowNullValues) RedissonCache(org.redisson.api.RMapCache<Object, Object> mapCache, CacheConfig config, boolean allowNullValues) -
方法概要
修饰符和类型方法说明private voidprivate voidprivate voidvoidclear()voidprotected ObjectfromStoreValue(Object storeValue) cn.taketoday.cache.Cache.ValueWrapper<T> T<T> T(专用程序包) longThe number of get requests that were satisfied by the cache.(专用程序包) longA miss is a get request that is not satisfied.(专用程序包) longgetName()org.redisson.api.RMap<?,?> voidcn.taketoday.cache.Cache.ValueWrapperputIfAbsent(Object key, Object value) private <T> Objectprotected ObjecttoStoreValue(Object userValue) private cn.taketoday.cache.Cache.ValueWrappertoValueWrapper(Object value) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cn.taketoday.cache.Cache
evictIfPresent, invalidate, retrieve, retrieve
-
字段详细资料
-
mapCache
-
map
-
config
-
allowNullValues
private final boolean allowNullValues -
hits
-
puts
-
misses
-
-
构造器详细资料
-
RedissonCache
public RedissonCache(org.redisson.api.RMapCache<Object, Object> mapCache, CacheConfig config, boolean allowNullValues) -
RedissonCache
-
-
方法详细资料
-
getName
- 指定者:
getName在接口中cn.taketoday.cache.Cache
-
getNativeCache
public org.redisson.api.RMap<?,?> getNativeCache()- 指定者:
getNativeCache在接口中cn.taketoday.cache.Cache
-
get
- 指定者:
get在接口中cn.taketoday.cache.Cache
-
get
- 指定者:
get在接口中cn.taketoday.cache.Cache
-
put
- 指定者:
put在接口中cn.taketoday.cache.Cache
-
putIfAbsent
- 指定者:
putIfAbsent在接口中cn.taketoday.cache.Cache
-
evict
- 指定者:
evict在接口中cn.taketoday.cache.Cache
-
clear
public void clear()- 指定者:
clear在接口中cn.taketoday.cache.Cache
-
toValueWrapper
-
get
- 指定者:
get在接口中cn.taketoday.cache.Cache
-
putValue
-
fromStoreValue
-
toStoreValue
-
getCacheHits
long getCacheHits()The number of get requests that were satisfied by the cache.- 返回:
- the number of hits
-
getCacheMisses
long getCacheMisses()A miss is a get request that is not satisfied.- 返回:
- the number of misses
-
getCachePuts
long getCachePuts() -
addCachePut
private void addCachePut() -
addCacheHit
private void addCacheHit() -
addCacheMiss
private void addCacheMiss()
-