Class LruCache<K,V>

java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<K,V>
com.pervasive.datarush.commons.util.LruCache<K,V>
Type Parameters:
K - the key type
V - the value type
All Implemented Interfaces:
Serializable, Cloneable, Map<K,V>

public final class LruCache<K,V> extends LinkedHashMap<K,V>
Simple LRUCache implementation based off of linked hash map
See Also:
  • Constructor Details

    • LruCache

      public LruCache(int maxEntries)
      Create an LRU cache with the given max number of entries
      Parameters:
      maxEntries - the max number of entries
  • Method Details