K - V - public interface Cache<K,V>
extends java.lang.Comparable
Copyright 2009 Partner Software, Inc.
| Modifier and Type | Method and Description |
|---|---|
V |
cachedValueFor(K index)
Get the object associated with the given index, keeping the returned item in cache subject to capacity and other settings.
|
void |
clear()
Clears all items from the cache, so that they must be reloaded.
|
int |
getByteSize()
Gets an estimate of the size of the cached values, in bytes.
|
int |
getCapacity()
Gets the maximum number of cached values.
|
java.lang.String |
getName() |
java.util.List<V> |
listCachedValues()
Lists the values currently in cache.
|
void |
setCapacity(int newSize)
Sets the maximum number of cached values.
|
int |
size()
Returns the current cache size (number of cached values).
|
V |
uncachedValueFor(K index)
Get the object associated with the given index, without regard to the cache.
|
java.lang.String getName()
V cachedValueFor(K index)
V uncachedValueFor(K index)
void clear()
java.util.List<V> listCachedValues()
int size()
int getCapacity()
void setCapacity(int newSize)
int getByteSize()