|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.SpyObject
net.spy.cache.LRUCache
public class LRUCache
A fixed-size least-recently-used cache.
| Constructor Summary | |
|---|---|
LRUCache(int size)
Get an instance of LRUCache. |
|
| Method Summary | |
|---|---|
java.lang.Object |
get(java.lang.Object key)
Get the named object from the cache. |
void |
put(java.lang.Object key,
java.lang.Object value)
Store an object in the cache. |
| Methods inherited from class net.spy.SpyObject |
|---|
getLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LRUCache(int size)
| Method Detail |
|---|
public java.lang.Object get(java.lang.Object key)
key - the key
public void put(java.lang.Object key,
java.lang.Object value)
key - the cache keyvalue - the cache value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||