Package org.redisson.cache
Class ReferenceCacheMap<K,V>
java.lang.Object
org.redisson.cache.AbstractCacheMap<K,V>
org.redisson.cache.ReferenceCacheMap<K,V>
- Type Parameters:
K- keyV- value
- All Implemented Interfaces:
ConcurrentMap<K,,V> Map<K,,V> Cache<K,V>
- Author:
- Nikita Koksharov
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected CachedValue<K, V> protected booleanprotected voidprotected booleanstatic <K,V> ReferenceCacheMap <K, V> soft(long timeToLiveInMillis, long maxIdleInMillis) static <K,V> ReferenceCacheMap <K, V> weak(long timeToLiveInMillis, long maxIdleInMillis) Methods inherited from class org.redisson.cache.AbstractCacheMap
clear, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, get, isEmpty, keySet, onValueCreate, onValueRead, onValueRemove, put, putAll, putIfAbsent, readValue, removalListener, remove, remove, replace, replace, size, valuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.concurrent.ConcurrentMap
compute, forEach, getOrDefault, merge, replaceAll
-
Method Details
-
weak
-
soft
-
create
- Overrides:
createin classAbstractCacheMap<K,V>
-
isFull
- Overrides:
isFullin classAbstractCacheMap<K,V>
-
removeExpiredEntries
protected boolean removeExpiredEntries()- Overrides:
removeExpiredEntriesin classAbstractCacheMap<K,V>
-
onMapFull
protected void onMapFull()- Specified by:
onMapFullin classAbstractCacheMap<K,V>
-