|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContentCache<K>
Interface that describes basic methods for working with a cache of content objects.
Method Summary | |
---|---|
Object |
get(String key)
Gets content stored in the cache |
void |
invalidate()
Invalidates the cache |
void |
put(String key,
K obj)
Places content into the cache (with default timeout) |
void |
put(String key,
K obj,
long timeout)
Places content into the cache |
void |
remove(String key)
Removes a content object from the cache. |
Method Detail |
---|
Object get(String key)
key
- the key
void put(String key, K obj)
key
- the keyobj
- the objvoid put(String key, K obj, long timeout)
key
- the keyobj
- the objtimeout
- the timeout in millisecondsvoid remove(String key)
key
- the keyvoid invalidate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |