|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Cache<KEY,VALUE>
Simple cache, slightly based on Map, but only with the needed methods. Special sub-interfaces are provided for loading/purging items to/from cache.
Nested Class Summary | |
---|---|
static interface |
Cache.Loader<KEY,VALUE>
|
static interface |
Cache.Purger<VALUE>
|
Method Summary | |
---|---|
void |
clear()
|
VALUE |
get(KEY key)
|
VALUE |
put(KEY key,
VALUE value)
|
Method Detail |
---|
VALUE get(KEY key)
VALUE put(KEY key, VALUE value)
void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |