Interface Cache<K,V>
- Type Parameters:
K- 键类型V- 值类型
- All Known Implementing Classes:
FifoCache, LfuCache, LruCache, TimedCache, WeakCache
public interface Cache<K,V>
缓存接口,参考 Hutool 的
Cache 设计。- Since:
- 0.1.0
- Author:
- suretool
-
Method Details
-
get
-
put
-
remove
-
clear
void clear()清空缓存。 -
size
int size()缓存项数量。- Returns:
- 数量
-
containsKey
-
isEmpty
boolean isEmpty()是否为空。- Returns:
- 是否为空
-
getOrPut
-