org.apache.oro.util
public final class CacheLRU extends GenericCache
Since: 1.0
Version: 2.0.8
See Also: GenericCache
Constructor Summary | |
---|---|
CacheLRU(int capacity)
Creates a CacheLRU instance with a given cache capacity.
| |
CacheLRU()
Same as:
CacheLRU(GenericCache.DEFAULT_CAPACITY); |
Method Summary | |
---|---|
void | addElement(Object key, Object value)
Adds a value to the cache. |
Object | getElement(Object key) |
Parameters: capacity The capacity of the cache.
CacheLRU(GenericCache.DEFAULT_CAPACITY);
Parameters: key The key referencing the value added to the cache. value The value to add to the cache.