public final class LRUCache extends java.lang.Object implements MemoizeCache<java.lang.Object,java.lang.Object>
Constructor and Description |
---|
LRUCache(int maxCacheSize) |
Modifier and Type | Method and Description |
---|---|
void |
cleanUpNullReferences()
Replying on the Collections.SynchronizedMap thread-safe iteration implementation the method will remove all entries holding
SoftReferences to gc-evicted objects.
|
java.lang.Object |
get(java.lang.Object key) |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value) |
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
put
in interface MemoizeCache<java.lang.Object,java.lang.Object>
public java.lang.Object get(java.lang.Object key)
get
in interface MemoizeCache<java.lang.Object,java.lang.Object>
public void cleanUpNullReferences()
cleanUpNullReferences
in interface MemoizeCache<java.lang.Object,java.lang.Object>