T
- The value type being storedpublic interface DataCache<T extends Serializable>
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all of the mappings from this cache.
|
T |
get(String key)
Read data from cache.
|
boolean |
set(String key,
T value)
Put a value on a key in a data cache.
|
T get(String key)
key
- the key whose associated value is to be returnednull
if this map contains no mapping for the
keyboolean set(String key, T value) throws IllegalStateException
key
- the key under which this object should be added.value
- the object to storeIllegalStateException
- in the rare circumstance where queue is too
full to accept any more requestsvoid clear()
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.