|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SimpleCacheService
User: Yohann Chastagnier Date: 11/09/13
Method Summary | ||
---|---|---|
String |
add(Object value)
Adds a value and generate a unique key to retrieve later the value. |
|
void |
clear()
Clear the content of the cache. |
|
Object |
get(Object key)
Gets an element from the cache. |
|
|
get(Object key,
Class<T> classType)
Gets a typed element from the cache. |
|
void |
put(Object key,
Object value)
Puts a value for a given key. |
|
Object |
remove(Object key)
Removes an element from the cache and return it. |
|
|
remove(Object key,
Class<T> classType)
Removes a typed element from the cache and return it. |
Method Detail |
---|
void clear()
Object get(Object key)
key
-
<T> T get(Object key, Class<T> classType)
T
- key
- classType
-
Object remove(Object key)
key
-
<T> T remove(Object key, Class<T> classType)
T
- key
- classType
-
String add(Object value)
value
-
void put(Object key, Object value)
key
- value
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |