public class LRUCacheImpl<K,V> extends LRUCache<K,V>
| Constructor and Description |
|---|
LRUCacheImpl(int maxCacheSize) |
| Modifier and Type | Method and Description |
|---|---|
V |
get(K key)
Returns the value associated with the given key.
|
int |
getMaxCacheSize()
Returns the maximum number of entries that will be stored in this cache
|
CacheEntry |
put(K key,
V value)
Adds the given key and value pair into the cache
|
void |
releaseCache()
Clears all entries in the cache, for use when a known event makes the cache incorrect
|
java.lang.String |
toString() |
createCachepublic V get(K key)
LRUCachepublic CacheEntry put(K key, V value)
LRUCachepublic void releaseCache()
LRUCachereleaseCache in class LRUCache<K,V>public int getMaxCacheSize()
LRUCachegetMaxCacheSize in class LRUCache<K,V>public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2013 Oracle Corporation. All Rights Reserved.