|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MemCacheAPI<KEY,VAL>
Memory cache handler interface
Method Summary | |
---|---|
void |
addValue(KEY key,
VAL val)
Add entry to cache |
int |
getMaximumCacheSize()
Gets the maximum cache size |
VAL |
getValue(KEY key,
VAL dft)
Get entry from cache |
boolean |
hasValue(KEY key)
Returns true if the specified key exists in the cache |
int |
setMaximumCacheSize(int maxSize)
Sets the maximum cache size |
Method Detail |
---|
int setMaximumCacheSize(int maxSize)
maxSize
- The maximum cache size
int getMaximumCacheSize()
void addValue(KEY key, VAL val)
key
- The key to addval
- The value to associate with the specified keyboolean hasValue(KEY key)
key
- The key to check for existence
VAL getValue(KEY key, VAL dft)
key
- The key of the value to retrievedft
- The default value if the key does not exist
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |