Package org.redisson.api
Interface RMultimapCacheAsync<K,V>
- Type Parameters:
K
- key typeV
- value type
- All Superinterfaces:
RExpirableAsync
,RMultimapAsync<K,
,V> RObjectAsync
- All Known Subinterfaces:
RListMultimapCache<K,
,V> RListMultimapCacheNative<K,
,V> RMultimapCache<K,
,V> RSetMultimapCache<K,
,V> RSetMultimapCacheNative<K,
V>
- All Known Implementing Classes:
RedissonListMultimapCache
,RedissonListMultimapCacheNative
,RedissonSetMultimapCache
,RedissonSetMultimapCacheNative
Base asynchronous Multimap interface. Allows to map multiple values per key and define expiration per key.
- Author:
- Nikita Koksharov
-
Method Summary
Modifier and TypeMethodDescriptionexpireKeyAsync
(K key, long timeToLive, TimeUnit timeUnit) Set a timeout for key in async mode.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.RMultimapAsync
containsEntryAsync, containsKeyAsync, containsValueAsync, fastRemoveAsync, fastRemoveValueAsync, fastReplaceValuesAsync, getAllAsync, keySizeAsync, putAllAsync, putAsync, readAllKeySetAsync, removeAllAsync, removeAsync, replaceValuesAsync, sizeAsync
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
-
expireKeyAsync
Set a timeout for key in async mode. 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
-