public class MRUMemoryCache extends AbstractDoulbeLinkedListMemoryCache
AbstractDoulbeLinkedListMemoryCache.IteratorWrapper, AbstractDoulbeLinkedListMemoryCache.MapEntryWrapperhitCnt, 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, verifyCachedispose, getCacheAttributes, getCacheName, getCompositeCache, getGroupKeys, getMultiple, getQuiet, getSize, getStatus, setCacheAttributes, waterfalprotected 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 AbstractDoulbeLinkedListMemoryCachece - java.io.IOExceptionprotected void adjustListForGet(MemoryElementDescriptor me)
adjustListForGet in class AbstractDoulbeLinkedListMemoryCacheme - Copyright © 2002-2013 Apache Software Foundation. All Rights Reserved.