- Type Parameters:
K
- the type of the map key, see Map
.
V
- the type of the map value, see Map
.
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map<K,V>
- Direct Known Subclasses:
- WorkingSetCache
public class LRUCache<K,V>
extends java.util.LinkedHashMap<K,V>
An LRUCache with a fixed size and an access-order policy. Old mappings are automatically removed from the cache when
new mappings are added. This implementation uses an LinkedHashMap
internally.
- See Also:
- Serialized Form