pub trait HyperLogLogCommands {
fn pfadd<K, E, EE>(
&mut self,
key: K,
elements: EE
) -> PreparedCommand<'_, Self, bool>
where
Self: Sized,
K: Into<BulkString>,
E: Into<BulkString>,
EE: SingleArgOrCollection<E>,
{ ... }
fn pfcount<K, KK>(&mut self, keys: KK) -> PreparedCommand<'_, Self, usize>
where
Self: Sized,
K: Into<BulkString>,
KK: SingleArgOrCollection<K>,
{ ... }
fn pfmerge<D, S, SS>(
&mut self,
dest_key: D,
source_keys: SS
) -> PreparedCommand<'_, Self, ()>
where
Self: Sized,
D: Into<BulkString>,
S: Into<BulkString>,
SS: SingleArgOrCollection<S>,
{ ... }
}
Expand description
Adds the specified elements to the specified HyperLogLog.
true
if at least 1 HyperLogLog inFternal register was altered.
false
otherwise.
https://redis.io/commands/pfadd/
Return the approximated cardinality of the set(s)
observed by the HyperLogLog at key(s).
The approximated number of unique elements observed via PFADD.
https://redis.io/commands/pfcount/