module

Redis::Commands::HyperLogLog

Instance methods

pfadd(key : String, values : Enumerable(String))

Add all of the values to the HyperLogLog stored at key.

Source
pfadd(key : String, *values : String)

Add all of the values to the HyperLogLog stored at key.

Source
pfcount(keys : Enumerable(String))

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.

Source
pfcount(*keys : String)

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.

Source
pfmerge(destination_key target : String, source_keys sources : Enumerable(String))

Merge one or more HyperLogLogs specified by source_keys into the destination_key.

Source
pfmerge(destination_key target : String, *source_keys : String)

Merge one or more HyperLogLogs specified by source_keys into the destination_key.

Source