Package org.redisson.api
Interface RMultimapCache<K,V>
- Type Parameters:
K
- key typeV
- value type
- All Superinterfaces:
RExpirable
,RExpirableAsync
,RMultimap<K,
,V> RMultimapAsync<K,
,V> RMultimapCacheAsync<K,
,V> RObject
,RObjectAsync
- All Known Subinterfaces:
RListMultimapCache<K,
,V> RListMultimapCacheNative<K,
,V> RSetMultimapCache<K,
,V> RSetMultimapCacheNative<K,
V>
- All Known Implementing Classes:
RedissonListMultimapCache
,RedissonListMultimapCacheNative
,RedissonSetMultimapCache
,RedissonSetMultimapCacheNative
Base Multimap interface. Allows to map multiple values per key and define expiration per key.
- Author:
- Nikita Koksharov
-
Method Summary
Methods inherited from interface org.redisson.api.RExpirable
clearExpire, expire, expire, expire, expireAt, expireAt, expireIfGreater, expireIfGreater, expireIfLess, expireIfLess, expireIfNotSet, expireIfNotSet, expireIfSet, expireIfSet, getExpireTime, remainTimeToLive
Methods inherited from interface org.redisson.api.RExpirableAsync
clearExpireAsync, expireAsync, expireAsync, expireAsync, expireAtAsync, expireAtAsync, expireIfGreaterAsync, expireIfGreaterAsync, expireIfLessAsync, expireIfLessAsync, expireIfNotSetAsync, expireIfNotSetAsync, expireIfSetAsync, expireIfSetAsync, getExpireTimeAsync, remainTimeToLiveAsync
Methods inherited from interface org.redisson.api.RMultimap
clear, containsEntry, containsKey, containsValue, entries, fastRemove, fastRemoveValue, fastReplaceValues, get, getAll, getCountDownLatch, getFairLock, getLock, getPermitExpirableSemaphore, getReadWriteLock, getSemaphore, isEmpty, keySet, keySize, put, putAll, readAllKeySet, remove, removeAll, replaceValues, size, values
Methods inherited from interface org.redisson.api.RMultimapAsync
containsEntryAsync, containsKeyAsync, containsValueAsync, fastRemoveAsync, fastRemoveValueAsync, fastReplaceValuesAsync, getAllAsync, keySizeAsync, putAllAsync, putAsync, readAllKeySetAsync, removeAllAsync, removeAsync, replaceValuesAsync, sizeAsync
Methods inherited from interface org.redisson.api.RMultimapCacheAsync
expireKeyAsync
Methods inherited from interface org.redisson.api.RObject
addListener, copy, copy, copy, copyAndReplace, copyAndReplace, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
Methods inherited from interface org.redisson.api.RObjectAsync
addListenerAsync, copyAndReplaceAsync, copyAndReplaceAsync, copyAsync, copyAsync, copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
-
Method Details
-
expireKey
Set a timeout for key. After the timeout has expired, the key and its values will automatically be deleted.- Parameters:
key
- - map keytimeToLive
- - timeout before key will be deletedtimeUnit
- - timeout time unit- Returns:
true
if key exists and the timeout was set andfalse
if key not exists
-