public interface Cache
NoCache
strategy is assumed. When an instance of
Cache
is provided, the SimpleCache
strategy is assumed.NoCache
,
SimpleCache
,
AutoUpdateCache
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(java.lang.Object key)
Method with which objects can be retrieved from cache with a given key.
|
void |
put(java.lang.Object key,
java.lang.Object value)
Method with which objects can be stored in cache with a given key.
|
java.lang.Object get(java.lang.Object key)
key
- the key to usevoid put(java.lang.Object key, java.lang.Object value)
key
- the key to usevalue
- the item to store