Interface EvictableCache<K,V>
- Type Parameters:
K- type of the keysV- type of the values
- All Superinterfaces:
Map<K,V>, MemoizeCache<K, V>
- All Known Implementing Classes:
CommonCache, ConcurrentCommonCache, ConcurrentSoftCache, UnlimitedConcurrentCache
Represents an evictable memoize cache with its essential methods
- Since:
- 2.5.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumRepresents a eviction strategy for the cache with limited sizeNested classes/interfaces inherited from interface MemoizeCache
MemoizeCache.ValueProvider<K,V> -
Method Summary
Modifier and TypeMethodDescriptionclearAll()Clear the cachebooleancontainsKey(Object key) Determines if the cache contains an entry for the specified key.keys()Get all keys associated to cached valuesRemove the cached value by the keyintsize()Get the size of the cachevalues()Get all cached valuesMethods inherited from interface Map
clear, compute, computeIfAbsent, computeIfPresent, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, replace, replace, replaceAllMethods inherited from interface MemoizeCache
cleanUpNullReferences, get, getAndPut, put
-
Method Details
-
remove
-
clearAll
-
values
-
keys
-
containsKey
Determines if the cache contains an entry for the specified key.- Specified by:
containsKeyin interfaceMap<K,V> - Parameters:
key- key whose presence in this cache is to be tested.- Returns:
- true if the cache contains a mapping for the specified key
-
size
-