|
Groovy 2.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.runtime.memoize.LRUCache
public final class LRUCache extends Object
A cache backed by a Collections.SynchronizedMap
Constructor Summary | |
LRUCache(int maxCacheSize)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail |
---|
public LRUCache(int maxCacheSize)
Method Detail |
---|
public void cleanUpNullReferences()
public Object get(Object key)
public Object put(Object key, Object value)
Copyright © 2003-2013 The Codehaus. All rights reserved.