java.lang.Object | |
↳ | org.apache.lucene.util.cache.Cache<K, V> |
Known Direct Subclasses
SimpleMapCache<K, V>
|
Known Indirect Subclasses
SimpleLRUCache<K, V>
|
Base class for cache implementations.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Closes the cache.
| |||||||||||
Returns whether the given key is in this cache.
| |||||||||||
Returns the value for the given key.
| |||||||||||
Puts a (key, value)-pair into the cache.
| |||||||||||
Returns a thread-safe cache backed by the specified cache.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
java.io.Closeable
|
Closes the cache.
Puts a (key, value)-pair into the cache.
Returns a thread-safe cache backed by the specified cache. In order to guarantee thread-safety, all access to the backed cache must be accomplished through the returned cache.