java.lang.Object | ||
↳ | org.apache.lucene.util.cache.Cache<K, V> | |
↳ | org.apache.lucene.util.cache.SimpleMapCache<K, V> |
Known Direct Subclasses
SimpleLRUCache<K, V>
|
Simple cache implementation that uses a HashMap to store (key, value) pairs.
This cache is not synchronized, use synchronizedCache(Cache)
if needed.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
map |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Closes the cache.
| |||||||||||
Returns whether the given key is in this cache.
| |||||||||||
Returns the value for the given key.
| |||||||||||
Returns a Set containing all keys in this cache.
| |||||||||||
Puts a (key, value)-pair into the cache.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.lucene.util.cache.Cache
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.io.Closeable
|
Closes the cache.
Puts a (key, value)-pair into the cache.