Uses of Class
com.xxl.tool.cache.CacheTool
Packages that use CacheTool
-
Uses of CacheTool in com.xxl.tool.cache
Methods in com.xxl.tool.cache that return CacheToolModifier and TypeMethodDescription设置 缓存类型CacheTool.capacity(int capacity) 设置 容量CacheTool.expireAfterAccess(long timeout) 设置 过期时长CacheTool.expireAfterWrite(long timeout) 设置 过期时长CacheTool.listener(CacheListener<K, V> listener) 设置 缓存变更(删除)监听器CacheTool.loader(CacheLoader<K, V> cacheLoader) 设置 缓存对象创建组件static <K,V> CacheTool<K, V> CacheTool.newCache()new cachestatic <K,V> CacheTool<K, V> CacheTool.newFIFOCache()FIFO cachestatic <K,V> CacheTool<K, V> CacheTool.newFIFOCache(int capacity) FIFO cachestatic <K,V> CacheTool<K, V> CacheTool.newLFUCache()LFU cachestatic <K,V> CacheTool<K, V> CacheTool.newLFUCache(int capacity) LFU cachestatic <K,V> CacheTool<K, V> CacheTool.newLRUCache()LRU cachestatic <K,V> CacheTool<K, V> CacheTool.newLRUCache(int capacity) LRU cachestatic <K,V> CacheTool<K, V> CacheTool.newUnlimitedCache()无容量限制static <K,V> CacheTool<K, V> CacheTool.newUnlimitedCache(int timeout) 无容量限制CacheTool.pruneInterval(long pruneInterval) 设置 定时清理延时, 单位:毫秒