|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
K
- the type variable for the key.
V
- the type variable for the value.
public interface UnawareCache<K,V>
The cache interface for all unaware caches for smartics properties. An unaware cache is not aware wht is stored within. It does not know its size, nor its keys.
Method Summary | |
---|---|
V |
get(K key) Returns the value from the cache for the given key. |
void |
put(K key, V value) Put the given value in the cache under the given key. |
void |
put(K key, V value, int lifespan, TimeUnit lifespanTimeUnit, int maxIdleTime, TimeUnit maxIdleTimeTimeUnit) Put the given value with the given properties in the cache under the given key. |
void |
put(K key, V value, long updateIntervalInMs, TimeUnit milliseconds) Put the given value with the given properties in the cache under the given key. |
V |
remove(K key) Removes the value for the given key. |
Method Detail |
---|
V get(K key)
key
- the key to retrieve a value for.
void put(K key, V value)
key
- the key to store the value.
value
- the value.
void put(K key, V value, long updateIntervalInMs, TimeUnit milliseconds)
key
- the key to store the value.
value
- the value.
updateIntervalInMs
- alue.the update time.
milliseconds
- the time unit.
void put(K key, V value, int lifespan, TimeUnit lifespanTimeUnit, int maxIdleTime, TimeUnit maxIdleTimeTimeUnit)
key
- the key to store the value.
value
- the value.
lifespan
- lifespan
lifespanTimeUnit
- lifespanTimeUnit
maxIdleTime
- maxIdleTime
maxIdleTimeTimeUnit
- maxIdleTimeTimeUnit
V remove(K key)
key
- the key for which the value shall be removed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |