Package org.redisson.api
Interface RMultimapCacheReactive<K,V>
-
- Type Parameters:
K
- key typeV
- value type
- All Known Subinterfaces:
RListMultimapCacheReactive<K,V>
,RSetMultimapCacheReactive<K,V>
public interface RMultimapCacheReactive<K,V>
Reactive interface ofRMultimapCache
object.- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.reactivex.rxjava3.core.Single<Boolean>
expireKey(K key, long timeToLive, TimeUnit timeUnit)
Set a timeout for key.
-
-
-
Method Detail
-
expireKey
io.reactivex.rxjava3.core.Single<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:
- A Single that will emit
true
if key exists and the timeout was set andfalse
if key not exists
-
-