public class MRUMemoryCache extends AbstractDoulbeLinkedListMemoryCache
AbstractDoulbeLinkedListMemoryCache.IteratorWrapper, AbstractDoulbeLinkedListMemoryCache.MapEntryWrapper
hitCnt, list, missCnt
Constructor and Description |
---|
MRUMemoryCache() |
Modifier and Type | Method and Description |
---|---|
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.
|
addFirst, addLast, createMap, dumpCacheEntries, dumpCacheSize, dumpMap, freeElements, get, getIterator, getKeyArray, getStatistics, initialize, remove, removeAll, spoolLastElement, update, verifyCache
dispose, getCacheAttributes, getCacheName, getCompositeCache, getGroupKeys, getMultiple, getQuiet, getSize, getStatus, setCacheAttributes, waterfal
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
- Copyright © 2002-2013 Apache Software Foundation. All Rights Reserved.