|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Cache<KeyType extends java.io.Serializable,ValueType extends java.io.Serializable>
The Cache interface represents... a cache. In some circumstances
it is more optimal to implement caching directly in the code instead of
relying on Hibernate caching methods. This interface abstracts from the used
cache implementation. Cache implementations must be thread-safe.
| Method Summary | |
|---|---|
void |
clear()
Removes all entries from the cache. |
ValueType |
get(KeyType aKey)
Retrieves a value from the cache. |
void |
put(KeyType aKey,
ValueType aValue)
Adds a key-value pair to the cache. |
void |
remove(KeyType aKey)
Removes an entry from the cache. |
| Method Detail |
|---|
void put(KeyType aKey,
ValueType aValue)
aKey - Key.aValue - Value.ValueType get(KeyType aKey)
aKey - Key to retrieve.
void remove(KeyType aKey)
aKey - Key to remove the entry for.void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||