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 Implementing Classes:
- CommonCache,- ConcurrentCommonCache,- ConcurrentSoftCache,- StampedCommonCache,- UnlimitedConcurrentCache
 
 public interface EvictableCache<K,V> extends MemoizeCache<K,V>, Map<K,V> Represents an evictable memoize cache with its essential methods- Since:
- 2.5.0
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static interfaceEvictableCache.Action<K,V,R>Represents the action to deal with the cachestatic classEvictableCache.EvictionStrategyRepresents a eviction strategy for the cache with limited size- 
Nested 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 SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclear()Clear the cacheMap<K,V>clearAll()Clear the cachebooleancontainsKey(Object key)Determines if the cache contains an entry for the specified key.Set<K>keys()Get all keys associated to cached valuesVremove(Object key)Remove the cached value by the keyintsize()Get the size of the cacheCollection<V>values()Get all cached values- 
Methods inherited from interface java.util.Mapcompute, computeIfAbsent, computeIfPresent, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, replace, replace, replaceAll
 - 
Methods inherited from interface org.codehaus.groovy.runtime.memoize.MemoizeCachecleanUpNullReferences, get, getAndPut, put
 
- 
 
- 
- 
- 
Method Detail- 
cleardefault void clear() Clear the cache- Specified by:
- clearin interface- Map<K,V>
- See Also:
- clearAll()
 
 - 
valuesCollection<V> values() Get all cached values
 - 
containsKeyboolean containsKey(Object key) Determines 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
 
 
- 
 
-