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
public interface IMutableCache<KEYTYPE,VALUETYPE> extends ICache<KEYTYPE,VALUETYPE>
Interface for a very simple Map-like cache.- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EChangeclearCache()Remove all cached elements.EChangeremoveFromCache(KEYTYPE aKey)Remove the given key from the cache.-
Methods inherited from interface com.helger.commons.cache.ICache
getFromCache
-
Methods inherited from interface com.helger.commons.lang.IHasSize
isEmpty, isNotEmpty, size
-
-
-
-
Method Detail
-
removeFromCache
@Nonnull EChange removeFromCache(KEYTYPE aKey)
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,
-
-