|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Base interface for Cache implementations.
| Method Summary | |
java.lang.Object |
get(java.lang.Object key)
Get the value for the given key from the cache. |
int |
getTTL()
Get the default time to live. |
void |
loadConfiguration(Configuration configuration)
Load the Cache's configuration from the given Configuration object. |
void |
put(java.lang.Object key,
java.lang.Object value)
Insert a value into the cache. |
void |
put(java.lang.Object key,
java.lang.Object value,
int ttl)
Insert a value into the cache with the specified time to live. |
void |
remove(java.lang.Object key)
Remove a value from the cache. |
void |
setTTL(int ttl)
Set the default time to live. |
| Method Detail |
public java.lang.Object get(java.lang.Object key)
key - The key
public void put(java.lang.Object key,
java.lang.Object value)
key - The keyvalue - The value
public void put(java.lang.Object key,
java.lang.Object value,
int ttl)
key - The keyvalue - The valuettl - The time to livepublic void remove(java.lang.Object key)
key - The keypublic int getTTL()
public void setTTL(int ttl)
ttl - The new default time to live
public void loadConfiguration(Configuration configuration)
throws ConfigurationException
configuration - The Configuration object
ConfigurationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||