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