K
- keyV
- valuepublic class LFUCacheMap<K,V> extends AbstractCacheMap<K,V>
Modifier and Type | Class and Description |
---|---|
static class |
LFUCacheMap.LFUCachedValue |
static class |
LFUCacheMap.MapKey |
Constructor and Description |
---|
LFUCacheMap(int size,
long timeToLiveInMillis,
long maxIdleInMillis) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
protected CachedValue |
create(K key,
V value,
long ttl,
long maxIdleTime) |
protected void |
onMapFull() |
protected void |
onValueCreate(CachedValue value) |
protected void |
onValueRead(CachedValue value) |
protected void |
onValueRemove(CachedValue value) |
containsKey, containsValue, entrySet, get, isEmpty, isFull, keySet, put, put, putAll, readValue, remove, removeExpiredEntries, 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 LFUCacheMap(int size, long timeToLiveInMillis, long maxIdleInMillis)
protected CachedValue create(K key, V value, long ttl, long maxIdleTime)
create
in class AbstractCacheMap<K,V>
protected void onValueCreate(CachedValue value)
onValueCreate
in class AbstractCacheMap<K,V>
protected void onValueRead(CachedValue value)
onValueRead
in class AbstractCacheMap<K,V>
protected void onValueRemove(CachedValue value)
onValueRemove
in class AbstractCacheMap<K,V>
protected void onMapFull()
onMapFull
in class AbstractCacheMap<K,V>
Copyright © 2014–2019 The Redisson Project. All rights reserved.