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>,RMultimapCache<K,V>,RSetMultimapCache<K,V>
- All Known Implementing Classes:
RedissonListMultimapCache,RedissonSetMultimapCache
public interface RMultimapCacheAsync<K,V> extends RMultimapAsync<K,V>
Base asynchronous 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 RFuture<Boolean>expireKeyAsync(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, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
-
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.RObjectAsync
addListenerAsync, copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
-
-
-
-
Method Detail
-
expireKeyAsync
RFuture<Boolean> expireKeyAsync(K key, long timeToLive, TimeUnit timeUnit)
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:
trueif key exists and the timeout was set andfalseif key not exists
-
-