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