Interface EvictableCache<K,V> 
- Type Parameters:
- K- type of the keys
- V- type of the values
- All Superinterfaces:
- Map<K,,- V> - MemoizeCache<K,- V> 
- All Known Subinterfaces:
- FlexibleEvictableCache<K,- V> 
- All Known Implementing Classes:
- CommonCache,- ConcurrentCommonCache,- ConcurrentSoftCache,- StampedCommonCache,- UnlimitedConcurrentCache
Represents an evictable memoize cache with its essential methods
- Since:
- 2.5.0
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfaceRepresents the action to deal with the cachestatic enumRepresents an eviction strategy for the cache with limited sizeNested classes/interfaces inherited from interface java.util.MapMap.Entry<K extends Object,V extends Object> Nested classes/interfaces inherited from interface org.codehaus.groovy.runtime.memoize.MemoizeCacheMemoizeCache.ValueProvider<K,V> 
- 
Method SummaryModifier and TypeMethodDescriptiondefault voidclear()Clear the cacheclearAll()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 java.util.Mapcompute, computeIfAbsent, computeIfPresent, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, replace, replace, replaceAllMethods inherited from interface org.codehaus.groovy.runtime.memoize.MemoizeCachecleanUpNullReferences, get, getAndPut, put
- 
Method Details- 
removeRemove the cached value by the key
- 
clearAllClear the cache- Returns:
- returns the content of the cleared map
 
- 
cleardefault void clear()Clear the cache
- 
valuesCollection<V> values()Get all cached values
- 
keysGet all keys associated to cached values- Returns:
- all keys
 
- 
containsKeyDetermines if the cache contains an entry for the specified key.- Specified by:
- containsKeyin interface- Map<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
 
- 
sizeint size()Get the size of the cache
 
-