Package com.mapr.baseutils.utils
Class LRUCache<K,V>
java.lang.Object
com.mapr.baseutils.utils.LRUCache<K,V>
Simple LRU implementation to hold fixed number of entries in cache
Least recently used entries are removed as capacity is reached
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LRUCache
public LRUCache(long maxSize)
-
-
Method Details
-
get
-
put
-
remove
-
clear
public void clear() -
usedEntries
public int usedEntries() -
size
public int size() -
getAllValues
-
entrySet
-