K
- keyV
- valuepublic class ReferenceCacheMap<K,V> extends AbstractCacheMap<K,V>
Modifier and Type | Method and Description |
---|---|
protected CachedValue<K,V> |
create(K key,
V value,
long ttl,
long maxIdleTime) |
protected boolean |
isFull(K key) |
protected void |
onMapFull() |
protected boolean |
removeExpiredEntries() |
static <K,V> ReferenceCacheMap<K,V> |
soft(long timeToLiveInMillis,
long maxIdleInMillis) |
static <K,V> ReferenceCacheMap<K,V> |
weak(long timeToLiveInMillis,
long maxIdleInMillis) |
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, onValueCreate, onValueRead, onValueRemove, 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 static <K,V> ReferenceCacheMap<K,V> weak(long timeToLiveInMillis, long maxIdleInMillis)
public static <K,V> ReferenceCacheMap<K,V> soft(long timeToLiveInMillis, long maxIdleInMillis)
protected CachedValue<K,V> create(K key, V value, long ttl, long maxIdleTime)
create
in class AbstractCacheMap<K,V>
protected boolean isFull(K key)
isFull
in class AbstractCacheMap<K,V>
protected boolean removeExpiredEntries()
removeExpiredEntries
in class AbstractCacheMap<K,V>
protected void onMapFull()
onMapFull
in class AbstractCacheMap<K,V>
Copyright © 2014–2020 Redisson. All rights reserved.