Package com.helger.commons.cache
Interface IMutableCache<KEYTYPE,VALUETYPE>
- Type Parameters:
KEYTYPE- Cache key type.VALUETYPE- Cache value type.
- All Known Implementing Classes:
Cache,DateTimeFormatterCache,MappedCache,PDTFormatter.LocalizedDateFormatCache,RegExCache
Interface for a very simple Map-like cache.
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptionRemove all cached elements.removeFromCache(KEYTYPE aKey) Remove the given key from the cache.Methods inherited from interface com.helger.commons.cache.ICache
getFromCacheMethods inherited from interface com.helger.commons.lang.IHasSize
isEmpty, isNotEmpty, size
-
Method Details
-
removeFromCache
Remove the given key from the cache.- Parameters:
aKey- The key to be removed. May benullable or not - depends upon the implementation.- Returns:
EChange.CHANGEDupon success,EChange.UNCHANGEDif the key was not within the cache,
-
clearCache
Remove all cached elements.- Returns:
EChange.
-