Class LRUCache<K,V>

java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<K,V>
com.couchbase.client.core.util.LRUCache<K,V>
All Implemented Interfaces:
Serializable, Cloneable, Map<K,V>

public class LRUCache<K,V> extends LinkedHashMap<K,V>
Implements a generic LRU cache which evicts after the max size is reached.
Since:
2.2.0
See Also:
  • Constructor Details

    • LRUCache

      public LRUCache(int maxCapacity)
  • Method Details