org.apache.lucene.util.cache
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.
|
synchronizedCache
public SimpleMapCache()
public SimpleMapCache(java.util.Map map)
public java.lang.Object get(java.lang.Object key)
Cache
public void put(java.lang.Object key, java.lang.Object value)
Cache
public void close()
Cache
public boolean containsKey(java.lang.Object key)
Cache
containsKey
in class Cache
public java.util.Set keySet()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.