K
- V
- public class Ehcache<K,V>
extends com.landawn.abacus.cache.AbstractCache<K,V>
Modifier and Type | Method and Description |
---|---|
void |
clear()
Remove all cached entities from cache pool.
|
void |
close()
release the resource token by this cache.
|
boolean |
containsKey(K k) |
Optional<V> |
get(K k) |
boolean |
isClosed()
method isClosed
|
java.util.Set<K> |
keySet() |
boolean |
put(K k,
V v,
long liveTime,
long maxIdleTime) |
void |
remove(K k) |
int |
size()
Method size
|
public boolean put(K k, V v, long liveTime, long maxIdleTime)
liveTime
- unit is millisecondsmaxIdleTime
- unit is millisecondspublic void remove(K k)
public boolean containsKey(K k)
public java.util.Set<K> keySet()
public int size()
com.landawn.abacus.cache.Cache
public void clear()
com.landawn.abacus.cache.Cache
public void close()
com.landawn.abacus.cache.Cache
public boolean isClosed()
com.landawn.abacus.cache.Cache