K
- map keyV
- map valuepublic interface RLocalCachedMap<K,V> extends RMap<K,V>, RDestroyable
Each instance maintains local cache to achieve fast read operations. Suitable for maps which used mostly for read operations and network roundtrip delays are undesirable.
Modifier and Type | Method and Description |
---|---|
Set<Map.Entry<K,V>> |
cachedEntrySet()
Returns all map entries stored in local cache
|
Set<K> |
cachedKeySet()
Returns all keys stored in local cache
|
Collection<V> |
cachedValues()
Returns all values stored in local cache
|
void |
clearLocalCache()
Clears local cache across all instances
|
RFuture<Void> |
clearLocalCacheAsync()
Clears local cache across all instances
|
Map<K,V> |
getCachedMap()
Returns state of local cache
|
void |
preloadCache()
Pre-warm the cached entries.
|
void |
preloadCache(int count)
Pre-warm the cached entries.
|
addAndGet, containsKey, containsValue, entrySet, entrySet, entrySet, entrySet, fastPut, fastPutIfAbsent, fastRemove, fastReplace, get, getAll, getCountDownLatch, getFairLock, getLock, getPermitExpirableSemaphore, getReadWriteLock, getSemaphore, keySet, keySet, keySet, keySet, loadAll, loadAll, mapReduce, put, putAll, putAll, putIfAbsent, readAllEntrySet, readAllKeySet, readAllMap, readAllValues, remove, remove, replace, replace, values, values, values, values, valueSize
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAll
clearExpire, expire, expireAt, expireAt, remainTimeToLive
addListener, copy, delete, dump, getCodec, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
addAndGetAsync, containsKeyAsync, containsValueAsync, fastPutAsync, fastPutIfAbsentAsync, fastRemoveAsync, fastReplaceAsync, getAllAsync, getAsync, loadAllAsync, loadAllAsync, putAllAsync, putAllAsync, putAsync, putIfAbsentAsync, readAllEntrySetAsync, readAllKeySetAsync, readAllMapAsync, readAllValuesAsync, removeAsync, removeAsync, replaceAsync, replaceAsync, sizeAsync, valueSizeAsync
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
addListenerAsync, copyAsync, deleteAsync, dumpAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
destroy
void preloadCache()
void preloadCache(int count)
count
param.count
- - size of batchRFuture<Void> clearLocalCacheAsync()
void clearLocalCache()
Collection<V> cachedValues()
Set<Map.Entry<K,V>> cachedEntrySet()
Copyright © 2014–2020 Redisson. All rights reserved.