Class CachingMap<K,V>

java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<K,V>
io.goobi.viewer.controller.model.CachingMap<K,V>
Type Parameters:
K - the type of keys maintained by this map
V - the type of mapped values
All Implemented Interfaces:
Serializable, Cloneable, Map<K,V>, SequencedMap<K,V>

public class CachingMap<K,V> extends LinkedHashMap<K,V>
A thread-safe, size-bounded LinkedHashMap that evicts the eldest entry when the map exceeds its configured maximum capacity. Suitable as a simple in-memory LRU cache for moderate data volumes.
See Also: