|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
K
- the type of the cache keysV
- the type of the cache valuespublic interface ICache<K,V>
Common interface for all the cache objects used by the template engine.
This is the interface that must be implemented by all cache objects managed
by ICacheManager
implementations.
Method Summary | |
---|---|
void |
clear()
Clear the entire cache. |
void |
clearKey(K key)
Clears a specific entry in the cache. |
V |
get(K key)
Retrieve a value from the cache. |
V |
get(K key,
ICacheEntryValidityChecker<? super K,? super V> validityChecker)
Retrieve a value from the cache, using the specified validity checker to ensure the entry is still valid. |
void |
put(K key,
V value)
Insert a new value into the cache. |
Method Detail |
---|
void put(K key, V value)
Insert a new value into the cache.
key
- the key of the new entryvalue
- the value to be cachedV get(K key)
Retrieve a value from the cache.
key
- the key of the value to be retrieved
V get(K key, ICacheEntryValidityChecker<? super K,? super V> validityChecker)
Retrieve a value from the cache, using the specified validity checker to ensure the entry is still valid. If the cache already has a default validity checker, this method should override this setting and use the one specified instead.
key
- the key of the value to be retrievedvalidityChecker
- the validity checker to be used to ensure the entry is still valid.
void clear()
Clear the entire cache.
void clearKey(K key)
Clears a specific entry in the cache.
key
- the key of the entry to be cleared.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |