Uses of Interface
com.sure.tool.cache.Cache
Packages that use Cache
-
Uses of Cache in com.sure.tool.cache
Classes in com.sure.tool.cache that implement CacheModifier and TypeClassDescriptionclassFifoCache<K,V> 先进先出缓存:容量满时淘汰最早写入的条目,参考 Hutool 的FIFOCache设计。classLfuCache<K,V> 最不经常使用缓存:容量满时淘汰访问频率最低的条目(频率相同淘汰最早写入),参考 Hutool 的LFUCache设计。classLruCache<K,V> 最近最少使用缓存:容量满时淘汰最久未访问的条目,参考 Hutool 的LRUCache设计。classTimedCache<K,V> 定时过期缓存:条目可设定存活时间(TTL),读取时惰性过期,参考 Hutool 的TimedCache设计。classWeakCache<K,V> 弱引用缓存:值以WeakReference持有,对象被 GC 回收后自动清理键; 支持可选 TTL(默认不过期)与容量上限(0 表示无上限),参考 Hutool 的WeakCache设计。