public interface ILcdCache
Cached objects identified by their own keys. Each key must therefore be unique.
Modifier and Type | Method and Description |
---|---|
void |
clearCache()
Clears the cache.
|
Object |
getCachedObject(Object aKey)
Looks up and returns the cached Object corresponding to the given key.
|
void |
insertIntoCache(Object aKey,
Object aObject)
Inserts a cache Object corresponding to the given key Object.
|
Object |
removeCachedObject(Object aKey)
Looks up and removes the cached Object corresponding to the given key.
|
void insertIntoCache(Object aKey, Object aObject)
aKey
- the key Object that will be used to identify the Object.
The key must therefore be a unique identifier, typically the caller
itself: insertIntoCache(this, ...)
.aObject
- the Object to be cached.Object getCachedObject(Object aKey)
aKey
- the key Object that was used for storing the cache Object.Object removeCachedObject(Object aKey)
aKey
- the key Object that was used for storing the cache Object.void clearCache()