Package fun.awooo.dive.cache.common
Interface PersistCache<K,V>
-
- Type Parameters:
K- 键的类型V- 值的类型
- All Superinterfaces:
CommonCache<K,V>,TimeCache<K,V>
public interface PersistCache<K,V> extends TimeCache<K,V>
缓存键值对数据, 可以对键值对设置存活时间, 持久化保存
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanpersist(K key)对已存在的键值对进行持久化booleanpersist(K key, V value)设置或更新键值对, 并进行持久化-
Methods inherited from interface fun.awooo.dive.cache.common.CommonCache
clear, compute, computeIfAbsent, computeIfPresent, delete, get, get, getOrDefault, has, merge, putIfAbsent, remove, set
-
-