Class LfuCache<K,V>
java.lang.Object
com.sure.tool.cache.LfuCache<K,V>
- Type Parameters:
K- 键类型V- 值类型
- All Implemented Interfaces:
Cache<K,V>
-
Constructor Details
-
LfuCache
public LfuCache(int capacity) 创建 LFU 缓存。- Parameters:
capacity- 容量上限(>0)
-
-
Method Details
-
get
-
put
-
remove
-
clear
-
size
-
containsKey
-
isEmpty
-