KEYTYPE - Cache key type.VALUETYPE - Cache value type.public interface ISimpleCache<KEYTYPE,VALUETYPE> extends SimpleCacheMBean, IHasName
| Modifier and Type | Method and Description |
|---|---|
VALUETYPE |
getFromCache(KEYTYPE aKey)
Get the cached value associated with the passed key.
|
EChange |
removeFromCache(KEYTYPE aKey)
Remove the given key from the cache.
|
clearCache@Nullable VALUETYPE getFromCache(KEYTYPE aKey)
aKey - The key to be looked up. May be nullable or not -
depends upon the implementation.null if no such value is in the cache.@Nonnull EChange removeFromCache(KEYTYPE aKey)
aKey - The key to be removed. May be nullable or not - depends
upon the implementation.EChange.CHANGED upon success, EChange.UNCHANGED if
the key was not within the cache,Copyright © 2006–2014 phloc systems. All rights reserved.