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, metricsCacheMiss
protected final int cacheSize
protected final LinkedHashMap<Long,Object> items
public Object get(long recid)
get
in class Store.Cache
public void put(long recid, Object item)
put
in class Store.Cache
public void clear()
clear
in class Store.Cache
public void close()
close
in class Store.Cache
public Store.Cache newCacheForOtherSegment()
newCacheForOtherSegment
in class Store.Cache
Copyright © 2015. All Rights Reserved.