module Redis::Commands::HyperLogLog

Direct including types

Defined in:

commands/hyperloglog.cr

Instance Method Summary

Instance Method Detail

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

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


[View source]
def pfadd(key : String, *values : String) #

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


[View source]
def 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.


[View source]
def 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.


[View source]
def pfmerge(destination_key target : String, source_keys sources : Enumerable(String)) #

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


[View source]
def pfmerge(destination_key target : String, *source_keys : String) #

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


[View source]