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> |
clear() Clear the cache |
|
boolean |
containsKey(K key) Determines if the cache contains an entry for the specified key. |
|
Set<K> |
keys() Get all keys associated to cached values |
|
V |
remove(K 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 |
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
Get the size of the cache
Get all cached values