public class SimpleMapCache extends Cache
Cache.synchronizedCache(Cache)
if needed.| Constructor and Description |
|---|
SimpleMapCache() |
SimpleMapCache(Map map) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the cache.
|
boolean |
containsKey(Object key)
Returns whether the given key is in this cache.
|
Object |
get(Object key)
Returns the value for the given key.
|
Set |
keySet()
Returns a Set containing all keys in this cache.
|
void |
put(Object key,
Object value)
Puts a (key, value)-pair into the cache.
|
synchronizedCachepublic SimpleMapCache()
public SimpleMapCache(Map map)
public Object get(Object key)
Cachepublic void put(Object key, Object value)
Cachepublic void close()
Cachepublic boolean containsKey(Object key)
CachecontainsKey in class Cachepublic Set keySet()
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.