java.lang.Object | ||
↳ | org.apache.lucene.util.cache.Cache<K, V> | |
↳ | org.apache.lucene.util.cache.SimpleMapCache<K, V> |
![]()
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Closes the cache.
Puts a (key, value)-pair into the cache.