K
- type of the keysV
- type of the valuespublic interface EvictableCache<K,V> extends MemoizeCache<K,V>, java.util.Map<K,V>
Modifier and Type | Interface and Description |
---|---|
static class |
EvictableCache.EvictionStrategy
Represents a eviction strategy for the cache with limited size
|
MemoizeCache.ValueProvider<K,V>
Modifier and Type | Method and Description |
---|---|
java.util.Map<K,V> |
clearAll()
Clear the cache
|
boolean |
containsKey(java.lang.Object key)
Determines if the cache contains an entry for the specified key.
|
java.util.Set<K> |
keys()
Get all keys associated to cached values
|
V |
remove(java.lang.Object key)
Remove the cached value by the key
|
int |
size()
Get the size of the cache
|
java.util.Collection<V> |
values()
Get all cached values
|
cleanUpNullReferences, get, getAndPut, put
V remove(java.lang.Object key)
java.util.Map<K,V> clearAll()
java.util.Collection<V> values()
java.util.Set<K> keys()
boolean containsKey(java.lang.Object key)