public final class LRUCache extends Object implements MemoizeCache<Object,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.
|
Object |
get(Object key) |
Object |
put(Object key,
Object value) |
public Object put(Object key, Object value)
put
in interface MemoizeCache<Object,Object>
public void cleanUpNullReferences()
cleanUpNullReferences
in interface MemoizeCache<Object,Object>