接口的使用
org.tio.utils.cache.ICache
使用ICache的程序包
程序包
说明
-
org.tio.utils.cache中ICache的使用
参数类型为ICache的org.tio.utils.cache中的方法修饰符和类型方法说明static <T extends Serializable>
TCacheUtils.get(ICache cache, String cacheKey, boolean putTempToCacheIfNull, FirsthandCreater<T> firsthandCreater) 根据cacheKey从缓存中获取对象,如果缓存中没有该key对象,则用firsthandCreater获取对象,并将对象用cacheKey存于cache中static <T extends Serializable>
TCacheUtils.get(ICache cache, String cacheKey, boolean putTempToCacheIfNull, FirsthandCreater<T> firsthandCreater, Long readTimeoutWithSeconds) static <T extends Serializable>
TCacheUtils.get(ICache cache, String cacheKey, FirsthandCreater<T> firsthandCreater) 根据cacheKey从缓存中获取对象,如果缓存中没有该key对象,则用firsthandCreater获取对象,并将对象用cacheKey存于cache中 -
org.tio.utils.cache.caffeine中ICache的使用
-
org.tio.utils.cache.caffeineredis中ICache的使用
-
org.tio.utils.cache.guava中ICache的使用
-
org.tio.utils.cache.guavaredis中ICache的使用
-
org.tio.utils.cache.j2cache中ICache的使用
-
org.tio.utils.cache.redis中ICache的使用