Interface RMultimapCacheRx<K,V>

Type Parameters:
K - key type
V - value type
All Known Subinterfaces:
RListMultimapCacheRx<K,V>, RSetMultimapCacheRx<K,V>

public interface RMultimapCacheRx<K,V>
Rx-ified version of RMultimapCache.
Author:
Marnix Kammer
  • Method Summary

    Modifier and Type
    Method
    Description
    io.reactivex.rxjava3.core.Single<Boolean>
    expireKey(K key, long timeToLive, TimeUnit timeUnit)
    Set a timeout for key.
  • Method Details

    • 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 key
      timeToLive - - timeout before key will be deleted
      timeUnit - - timeout time unit
      Returns:
      A Single that will emit true if key exists and the timeout was set and false if key not exists