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>
,RSetMultimapCache<K,V>
- All Known Implementing Classes:
RedissonListMultimapCache
,RedissonSetMultimapCache
public interface RMultimapCache<K,V> extends RMultimap<K,V>, RMultimapCacheAsync<K,V>
Base Multimap interface. Allows to map multiple values per key and define expiration per key.- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
expireKey(K key, long timeToLive, TimeUnit timeUnit)
Set a timeout for key.-
Methods inherited from interface org.redisson.api.RExpirable
clearExpire, expire, expire, expireAt, expireAt, remainTimeToLive
-
Methods inherited from interface org.redisson.api.RExpirableAsync
clearExpireAsync, expireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
-
Methods inherited from interface org.redisson.api.RMultimap
clear, containsEntry, containsKey, containsValue, entries, fastRemove, 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, 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, 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, copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
-
-
-
-
Method Detail
-
expireKey
boolean expireKey(K key, long timeToLive, TimeUnit timeUnit)
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
-
-