类 Caffeineson
java.lang.Object
org.springframework.cache.support.AbstractValueAdaptingCache
cn.aradin.spring.caffeine.cache.Caffeineson
- 所有已实现的接口:
org.springframework.cache.Cache
public class Caffeineson
extends org.springframework.cache.support.AbstractValueAdaptingCache
-
嵌套类概要
从接口继承的嵌套类/接口 org.springframework.cache.Cache
org.springframework.cache.Cache.ValueRetrievalException, org.springframework.cache.Cache.ValueWrapper -
构造器概要
构造器构造器说明Caffeineson(String name, CaffeinesonConfig caffeineConfig, IVersionBroadHandler versionBroadHandler) -
方法概要
修饰符和类型方法说明caffeineCache(CaffeinesonConfig config, com.github.benmanes.caffeine.cache.RemovalListener<Object, Object> listener) construct caffeinevoidcleanUp()voidclear()longvoid<T> TgetName()protected Objectvoidorg.springframework.cache.Cache.ValueWrapperputIfAbsent(Object key, Object value) com.github.benmanes.caffeine.cache.stats.CacheStatsstats()获取统计信息从类继承的方法 org.springframework.cache.support.AbstractValueAdaptingCache
fromStoreValue, get, get, isAllowNullValues, toStoreValue, toValueWrapper从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.springframework.cache.Cache
evictIfPresent, invalidate
-
构造器详细资料
-
Caffeineson
public Caffeineson(String name, CaffeinesonConfig caffeineConfig, IVersionBroadHandler versionBroadHandler)
-
-
方法详细资料
-
caffeineCache
protected com.github.benmanes.caffeine.cache.Cache<Object,Object> caffeineCache(CaffeinesonConfig config, com.github.benmanes.caffeine.cache.RemovalListener<Object, Object> listener) construct caffeine- 参数:
config- to build a cachelistener- key-remove event- 返回:
- caffeine cache
-
getName
-
getNativeCache
-
estimatedSize
public long estimatedSize() -
cleanUp
public void cleanUp() -
get
-
put
-
putIfAbsent
-
evict
-
clear
public void clear() -
lookup
- 指定者:
lookup在类中org.springframework.cache.support.AbstractValueAdaptingCache
-
stats
public com.github.benmanes.caffeine.cache.stats.CacheStats stats()获取统计信息- 返回:
-