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