pub trait HyperLogLogCommands<T>: PrepareCommand<T> {
    fn pfadd<K, E, EE>(&self, key: K, elements: EE) -> CommandResult<'_, T, bool>
    where
        K: Into<BulkString>,
        E: Into<BulkString>,
        EE: SingleArgOrCollection<E>
, { ... } fn pfcount<K, KK>(&self, keys: KK) -> CommandResult<'_, T, usize>
    where
        K: Into<BulkString>,
        KK: SingleArgOrCollection<K>
, { ... } fn pfmerge<D, S, SS>(
        &self,
        dest_key: D,
        source_keys: SS
    ) -> CommandResult<'_, T, ()>
    where
        D: Into<BulkString>,
        S: Into<BulkString>,
        SS: SingleArgOrCollection<S>
, { ... } }
Expand description

A group of Redis commands related to HyperLogLog

See Also

Redis Hash Commands

Provided Methods

Adds the specified elements to the specified HyperLogLog.

Return
  • true if at least 1 HyperLogLog inFternal register was altered.
  • false otherwise.
See Also

https://redis.io/commands/pfadd/

Return the approximated cardinality of the set(s) observed by the HyperLogLog at key(s).

Return

The approximated number of unique elements observed via PFADD.

See Also

https://redis.io/commands/pfcount/

Merge N different HyperLogLogs into a single one.

See Also

https://redis.io/commands/pfmerge/

Implementors