|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.util.cache.Cache
public abstract class Cache
Base class for cache implementations.
Constructor Summary | |
---|---|
Cache()
|
Method Summary | |
---|---|
abstract void |
close()
Closes the cache. |
abstract boolean |
containsKey(Object key)
Returns whether the given key is in this cache. |
abstract Object |
get(Object key)
Returns the value for the given key. |
abstract void |
put(Object key,
Object value)
Puts a (key, value)-pair into the cache. |
static Cache |
synchronizedCache(Cache cache)
Returns a thread-safe cache backed by the specified cache. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Cache()
Method Detail |
---|
public static Cache synchronizedCache(Cache cache)
public abstract void put(Object key, Object value)
public abstract Object get(Object key)
public abstract boolean containsKey(Object key)
public abstract void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |