|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ICache
| Method Summary | ||
|---|---|---|
int |
cacheSize()
return the total number of objects hold by the cache |
|
Object |
get(String key)
Return the object associated to the key if exists, null otherwise |
|
|
get(String key,
Class<T> clazz)
Return the object associated to the key if exists, null otherwise |
|
int |
getHits()
return the total number of times an object has not be found in the cache |
|
int |
getMissing()
return the total number of times an object has not be found in the cache |
|
int |
getTotalcalls()
return the total number of request to get an object from the cache |
|
void |
put(String key,
Object value)
Put a new object in the cache |
|
void |
remove(String key)
Remove an object from the cache |
|
| Method Detail |
|---|
void put(String key,
Object value)
key - value - void remove(String key)
key - Object get(String key)
key -
<T> T get(String key,
Class<T> clazz)
key -
int cacheSize()
int getMissing()
int getHits()
int getTotalcalls()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||