vibe.d beta banner
get vibe.d
0.7.30

Function RedisDatabase.pfcount

Returns the approximated cardinality computed by the HyperLogLog data structure stored at the specified key.

When called with a single key, returns the approximated cardinality computed by the HyperLogLog data structure stored at the specified variable, which is 0 if the variable does not exist.

When called with multiple keys, returns the approximated cardinality of the union of the HyperLogLogs passed, by internally merging the HyperLogLogs stored at the provided keys into a temporary HyperLogLog.

Prototype

long pfcount(
  scope string[] keys
);
block ddox.authorsblock ddox.copyrightblock ddox.license
Authors
Copyright
License