K - key的类型V - value的类型
详情见: https://redkale.org
public interface CacheSource<K extends java.io.Serializable,V>
| 限定符和类型 | 方法和说明 |
|---|---|
void |
appendListItem(K key,
V value) |
void |
appendSetItem(K key,
V value) |
boolean |
exists(K key) |
V |
get(K key) |
V |
getAndRefresh(K key,
int expireSeconds) |
java.util.Collection<V> |
getCollection(K key) |
java.util.Collection<V> |
getCollectionAndRefresh(K key,
int expireSeconds) |
default boolean |
isOpen() |
void |
refresh(K key,
int expireSeconds) |
void |
remove(K key) |
void |
removeListItem(K key,
V value) |
void |
removeSetItem(K key,
V value) |
void |
set(int expireSeconds,
K key,
V value) |
void |
set(K key,
V value) |
void |
setExpireSeconds(K key,
int expireSeconds) |