module
Redis::Commands::HyperLogLog
Direct including types
Defined in:
commands/hyperloglog.crInstance Method Summary
-
#pfadd(key : String, values : Enumerable(String))
Add all of the
valuesto the HyperLogLog stored atkey. -
#pfadd(key : String, *values : String)
Add all of the
valuesto the HyperLogLog stored atkey. -
#pfcount(keys : Enumerable(String))
Return the estimated number of items in the HyperLogLogs specified at
keys. -
#pfcount(*keys : String)
Return the estimated number of items in the HyperLogLogs specified at
keys. -
#pfmerge(destination_key target : String, source_keys sources : Enumerable(String))
Merge one or more HyperLogLogs specified by
source_keysinto thedestination_key. -
#pfmerge(destination_key target : String, *source_keys : String)
Merge one or more HyperLogLogs specified by
source_keysinto thedestination_key.
Instance Method Detail
Add all of the values to the HyperLogLog stored at key.
Return the estimated number of items in the HyperLogLogs specified at keys.
WARNING In the Redis server, PFCOUNT is implemented differently depending on whether you supply 1 key or multiple keys — using multiple keys is significantly slower so it should not occur in a hot loop. See the official documentation for more details.
Return the estimated number of items in the HyperLogLogs specified at keys.
WARNING In the Redis server, PFCOUNT is implemented differently depending on whether you supply 1 key or multiple keys — using multiple keys is significantly slower so it should not occur in a hot loop. See the official documentation for more details.
Merge one or more HyperLogLogs specified by source_keys into the
destination_key.
Merge one or more HyperLogLogs specified by source_keys into the
destination_key.