K
- keyV
- valuepublic class LFUCacheMap<K,V> extends AbstractCacheMap<K,V>
Modifier and Type | Class | Description |
---|---|---|
static class |
LFUCacheMap.LFUCachedValue |
|
static class |
LFUCacheMap.MapKey |
Constructor | Description |
---|---|
LFUCacheMap(int size,
long timeToLiveInMillis,
long maxIdleInMillis) |
Modifier and Type | Method | 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, keySet, put, put, putAll, readValue, remove, removeExpiredEntries, size, values
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–2018 The Redisson Project. All rights reserved.