public static final class Store.Cache.LRU extends Store.Cache
Store.Cache.HardRef, Store.Cache.HashTable, Store.Cache.LRU, Store.Cache.WeakSoftRef| Modifier and Type | Field and Description |
|---|---|
protected int |
cacheSize |
protected LinkedHashMap<Long,Object> |
items |
cacheHitCounter, cacheMissCounter, lock, NULL| Constructor and Description |
|---|
Store.Cache.LRU(int cacheSize,
boolean disableLocks) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
close() |
Object |
get(long recid) |
Store.Cache |
newCacheForOtherSegment() |
void |
put(long recid,
Object item) |
metricsCacheHit, metricsCacheMissprotected final int cacheSize
protected final LinkedHashMap<Long,Object> items
public Object get(long recid)
get in class Store.Cachepublic void put(long recid,
Object item)
put in class Store.Cachepublic void clear()
clear in class Store.Cachepublic void close()
close in class Store.Cachepublic Store.Cache newCacheForOtherSegment()
newCacheForOtherSegment in class Store.CacheCopyright © 2015. All Rights Reserved.