public abstract class SLRUCache<K,V> extends SLRUMap<K,V>
Modifier | Constructor and Description |
---|---|
protected |
SLRUCache(int protectedQueueSize,
int probationalQueueSize) |
protected |
SLRUCache(int protectedQueueSize,
int probationalQueueSize,
EqualityPolicy<? super K> hashingStrategy) |
Modifier and Type | Method and Description |
---|---|
static <K,V> SLRUCache<K,V> |
create(int protectedQueueSize,
int probationalQueueSize,
NotNullFunction<? super K,? extends V> valueProducer) |
abstract V |
createValue(K key) |
V |
get(K key) |
V |
getIfCached(K key) |
clear, clearByCondition, entrySet, iterateKeys, onDropFromCache, put, putToProtectedQueue, remove
protected SLRUCache(int protectedQueueSize, int probationalQueueSize)
protected SLRUCache(int protectedQueueSize, int probationalQueueSize, EqualityPolicy<? super K> hashingStrategy)
public static <K,V> SLRUCache<K,V> create(int protectedQueueSize, int probationalQueueSize, NotNullFunction<? super K,? extends V> valueProducer)