public class TaskKeyLruCache<V> extends Object
Task.TaskKey
to value, with additional LRU functionality where the least
recently referenced key/values will be evicted as more values than the given cache size are
inserted.
In addition, this also allows the caller to invalidate cached values for keys that have since
changed.Modifier and Type | Class and Description |
---|---|
static interface |
TaskKeyLruCache.EvictionCallback |
Constructor and Description |
---|
TaskKeyLruCache(int cacheSize) |
TaskKeyLruCache(int cacheSize,
TaskKeyLruCache.EvictionCallback evictionCallback) |
public TaskKeyLruCache(int cacheSize)
public TaskKeyLruCache(int cacheSize, TaskKeyLruCache.EvictionCallback evictionCallback)
public void dump(String prefix, PrintWriter writer)