public class MRUMemoryCache<K extends Serializable,V extends Serializable> extends AbstractDoubleLinkedListMemoryCache<K,V>
AbstractDoubleLinkedListMemoryCache.IteratorWrapper<K extends Serializable,V extends Serializable>, AbstractDoubleLinkedListMemoryCache.MapEntryWrapper<K extends Serializable,V extends Serializable>
list
cache, cacheAttributes, cacheName, chunkSize, elementAttributes, lock, map
Constructor and Description |
---|
MRUMemoryCache() |
Modifier and Type | Method and Description |
---|---|
protected void |
adjustListForGet(MemoryElementDescriptor<K,V> me)
Makes the item the last in the list.
|
protected MemoryElementDescriptor<K,V> |
adjustListForUpdate(ICacheElement<K,V> ce)
Adds the item to the front of the list.
|
addFirst, addLast, createMap, dumpCacheEntries, dumpCacheSize, freeElements, get, getKeySet, getStatistics, initialize, remove, removeAll, spoolLastElement, update, verifyCache
dispose, dumpMap, getCacheAttributes, getCacheName, getCompositeCache, getMultiple, getQuiet, getSize, getStatus, setCacheAttributes, waterfal
protected MemoryElementDescriptor<K,V> adjustListForUpdate(ICacheElement<K,V> ce) throws IOException
It's not clear if the put operation should be different. Perhaps this should remove the oldest if full, and then put.
adjustListForUpdate
in class AbstractDoubleLinkedListMemoryCache<K extends Serializable,V extends Serializable>
ce
- IOException
protected void adjustListForGet(MemoryElementDescriptor<K,V> me)
adjustListForGet
in class AbstractDoubleLinkedListMemoryCache<K extends Serializable,V extends Serializable>
me
- Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.