Interface RMultimapCacheAsync<K,V>

Type Parameters:
K - key type
V - 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

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 Details

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