Module lettuce.core

Interface RedisHLLAsyncCommands<K,​V>

Type Parameters:
K - Key type.
V - Value type.
All Known Subinterfaces:
RedisAdvancedClusterAsyncCommands<K,​V>, RedisAsyncCommands<K,​V>, RedisClusterAsyncCommands<K,​V>, RedisClusterPubSubAsyncCommands<K,​V>, RedisPubSubAsyncCommands<K,​V>
All Known Implementing Classes:
AbstractRedisAsyncCommands, RedisAdvancedClusterAsyncCommandsImpl, RedisAsyncCommandsImpl, RedisClusterPubSubAsyncCommandsImpl, RedisPubSubAsyncCommandsImpl

public interface RedisHLLAsyncCommands<K,​V>
Asynchronous executed commands for HyperLogLog (PF* commands).
Since:
3.0
Author:
Mark Paluch
Generated class:
by io.lettuce.apigenerator.CreateAsyncApi
  • Method Summary

    Modifier and Type Method Description
    RedisFuture<Long> pfadd​(K key, V... values)
    Adds the specified elements to the specified HyperLogLog.
    RedisFuture<Long> pfcount​(K... keys)
    Return the approximated cardinality of the set(s) observed by the HyperLogLog at key(s).
    RedisFuture<String> pfmerge​(K destkey, K... sourcekeys)
    Merge N different HyperLogLogs into a single one.
  • Method Details

    • pfadd

      RedisFuture<Long> pfadd​(K key, V... values)
      Adds the specified elements to the specified HyperLogLog.
      Parameters:
      key - the key.
      values - the values.
      Returns:
      Long integer-reply specifically: 1 if at least 1 HyperLogLog internal register was altered. 0 otherwise.
    • pfmerge

      RedisFuture<String> pfmerge​(K destkey, K... sourcekeys)
      Merge N different HyperLogLogs into a single one.
      Parameters:
      destkey - the destination key.
      sourcekeys - the source key.
      Returns:
      String simple-string-reply The command just returns OK.
    • pfcount

      RedisFuture<Long> pfcount​(K... keys)
      Return the approximated cardinality of the set(s) observed by the HyperLogLog at key(s).
      Parameters:
      keys - the keys.
      Returns:
      Long integer-reply specifically: The approximated number of unique elements observed via PFADD.