Package org.redisson.api
Interface RMultimapCache<K,V>
-
- 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>
-
-
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, expireAt, expireAt, remainTimeToLive
-
Methods inherited from interface org.redisson.api.RExpirableAsync
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
-
Methods inherited from interface org.redisson.api.RMultimap
clear, containsEntry, containsKey, containsValue, entries, fastRemove, get, getAll, getLock, getReadWriteLock, 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
copy, delete, dump, getCodec, getName, isExists, migrate, move, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, touch, unlink
-
Methods inherited from interface org.redisson.api.RObjectAsync
copyAsync, deleteAsync, dumpAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, 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
-
-