|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.engine.memory.AbstractMemoryCache
org.apache.jcs.engine.memory.AbstractDoulbeLinkedListMemoryCache
org.apache.jcs.engine.memory.mru.MRUMemoryCache
public class MRUMemoryCache
The most recently used items move to the front of the list and get spooled to disk if the cache hub is configured to use a disk cache.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.jcs.engine.memory.AbstractDoulbeLinkedListMemoryCache |
---|
AbstractDoulbeLinkedListMemoryCache.IteratorWrapper, AbstractDoulbeLinkedListMemoryCache.MapEntryWrapper |
Field Summary |
---|
Fields inherited from class org.apache.jcs.engine.memory.AbstractDoulbeLinkedListMemoryCache |
---|
hitCnt, list, missCnt |
Fields inherited from class org.apache.jcs.engine.memory.AbstractMemoryCache |
---|
attr, cache, cacheName, cattr, chunkSize, map, status |
Constructor Summary | |
---|---|
MRUMemoryCache()
|
Method Summary | |
---|---|
protected void |
adjustListForGet(MemoryElementDescriptor me)
Makes the item the last in the list. |
protected MemoryElementDescriptor |
adjustListForUpdate(ICacheElement ce)
Adds the item to the front of the list. |
Methods inherited from class org.apache.jcs.engine.memory.AbstractDoulbeLinkedListMemoryCache |
---|
addFirst, addLast, createMap, dumpCacheEntries, dumpCacheSize, dumpMap, freeElements, get, getIterator, getKeyArray, getStatistics, initialize, remove, removeAll, spoolLastElement, update, verifyCache |
Methods inherited from class org.apache.jcs.engine.memory.AbstractMemoryCache |
---|
dispose, getCacheAttributes, getCacheName, getCompositeCache, getGroupKeys, getMultiple, getQuiet, getSize, getStatus, setCacheAttributes, waterfal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MRUMemoryCache()
Method Detail |
---|
protected MemoryElementDescriptor adjustListForUpdate(ICacheElement ce) throws java.io.IOException
It's not clear if the put operation sould be different. Perhaps this should remove the oldest if full, and then put.
adjustListForUpdate
in class AbstractDoulbeLinkedListMemoryCache
ce
-
java.io.IOException
protected void adjustListForGet(MemoryElementDescriptor me)
adjustListForGet
in class AbstractDoulbeLinkedListMemoryCache
me
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |