|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Cache<K>
Caching for Queries
| Method Summary | |
|---|---|
void |
clear()
Clears the cache |
long |
freeSpace()
Returns the available free space |
CacheObject |
get(K key)
Returns the cached object for the given key |
long |
getSize()
Returns the size of cache in bytes |
boolean |
put(K key,
CacheObject obj)
Places the cache object in the cache using the key |
| Method Detail |
|---|
void clear()
long freeSpace()
CacheObject get(K key)
key - key used to retrieve the object
CacheObjectlong getSize()
boolean put(K key,
CacheObject obj)
key - key used to place the objectobj - cache object
CacheObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||