Represents an evictable memoize cache with its essential methods
- type of the keys
- type of the valuesModifiers | Name | Description |
---|---|---|
enum |
EvictableCache.EvictionStrategy |
Represents a eviction strategy for the cache with limited size |
Type Params | Return Type | Name 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 |
Methods inherited from class | Name |
---|---|
interface MemoizeCache |
cleanUpNullReferences, get, getAndPut, put |
interface Map |
remove, remove, get, put, equals, values, hashCode, clear, isEmpty, replace, replace, replaceAll, size, entrySet, putAll, putIfAbsent, forEach, keySet, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, getOrDefault, merge |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Clear the cache
Determines if the cache contains an entry for the specified key.
key
- key whose presence in this cache is to be tested.Get all keys associated to cached values
Remove the cached value by the key
key
- of the cached valueGet the size of the cache
Get all cached values