K
- keyV
- valuepublic class LRUCacheMap<K,V> extends AbstractCacheMap<K,V>
AbstractCacheMap.CachedValue
Constructor and Description |
---|
LRUCacheMap(int size,
long timeToLiveInMillis,
long maxIdleInMillis) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
protected void |
onMapFull() |
protected void |
onValueCreate(AbstractCacheMap.CachedValue value) |
protected void |
onValueRead(AbstractCacheMap.CachedValue value) |
protected void |
onValueRemove(AbstractCacheMap.CachedValue value) |
containsKey, containsValue, create, entrySet, get, isEmpty, keySet, put, put, putAll, readValue, remove, size, values
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public LRUCacheMap(int size, long timeToLiveInMillis, long maxIdleInMillis)
protected void onValueCreate(AbstractCacheMap.CachedValue value)
onValueCreate
in class AbstractCacheMap<K,V>
protected void onValueRemove(AbstractCacheMap.CachedValue value)
onValueRemove
in class AbstractCacheMap<K,V>
protected void onValueRead(AbstractCacheMap.CachedValue value)
onValueRead
in class AbstractCacheMap<K,V>
protected void onMapFull()
onMapFull
in class AbstractCacheMap<K,V>
Copyright © 2014–2016 The Redisson Project. All rights reserved.