public interface CacheMap
Modifier and Type | Method and Description |
---|---|
void |
add(Object key,
Object value)
Add a value for the key to this cache.
|
void |
clear()
Remove all entries of the cache.
|
Object |
get(Object key)
Return the value for the key in case there is one in the cache.
|
Object |
remove(Object key)
Remove a key and its value from the cache.
|
int |
size()
Returns the number of key-value pairs in this cache.
|
Object get(Object key)
key
- The key to look-upvoid add(Object key, Object value)
key
- The key for the valuevalue
- The value to add to the cacheObject remove(Object key)
key
- The key to removeint size()
void clear()
Copyright © 2006–2013 The Apache Software Foundation. All rights reserved.