K - V - public class GuavaCache<K,V>
extends java.lang.Object
implements jmind.base.cache.MemCache<K,V>
| 构造器和说明 |
|---|
GuavaCache() |
GuavaCache(int maxSize) |
GuavaCache(int maxSize,
int duration) |
GuavaCache(int maxSize,
int duration,
boolean access) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear() |
boolean |
delete(K key) |
boolean |
exists(K key) |
V |
get(K key) |
java.lang.Object |
getCache() |
java.util.Map<K,V> |
getMulti(java.util.Collection<K> keys) |
boolean |
set(K key,
int seconds,
V value) |
boolean |
set(K key,
V value) |
java.lang.String |
toString() |
public GuavaCache()
public GuavaCache(int maxSize)
public GuavaCache(int maxSize,
int duration)
maxSize - 最大条数duration - 过期时间,单位分钟public GuavaCache(int maxSize,
int duration,
boolean access)
Copyright © 2017. All Rights Reserved.