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 interface  | 
EvictableCache.Action<K,V,R>
Represents the action to deal with the cache 
 | 
static class  | 
EvictableCache.EvictionStrategy
Represents a eviction strategy for the cache with limited size 
 | 
MemoizeCache.ValueProvider<K,V>| Modifier and Type | Method and Description | 
|---|---|
default void | 
clear()
Clear the cache 
 | 
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, putcompute, computeIfAbsent, computeIfPresent, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, replace, replace, replaceAlldefault void clear()
clear in interface Map<K,V>clearAll()Collection<V> values()
boolean containsKey(Object key)
containsKey in interface Map<K,V>key - key whose presence in this cache is to be tested.