K
- type of the keysV
- type of the valuespublic interface EvictableCache<K,V> extends MemoizeCache<K,V>, 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 |
---|---|
Map<K,V> |
clearAll()
Clear the cache
|
boolean |
containsKey(Object key)
Determines if the cache contains an entry for the specified key.
|
Set<K> |
keys()
Get all keys associated to cached values
|
V |
remove(Object key)
Remove the cached value by the key
|
int |
size()
Get the size of the cache
|
Collection<V> |
values()
Get all cached values
|
cleanUpNullReferences, get, getAndPut, put
clear, compute, computeIfAbsent, computeIfPresent, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, replace, replace, replaceAll
Collection<V> values()
boolean containsKey(Object key)
containsKey
in interface Map<K,V>
key
- key whose presence in this cache is to be tested.