struct Redis::CountMinSketch

Defined in:

count_min_sketch.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(redis : Redis::Commands) #

[View source]

Instance Method Detail

def incrby(key : String, item : String, increment : Int | String) #

[View source]
def info(key : String) #

[View source]
def initbydim(key : String, width : Int | String, depth : Int | String) #

Initializes a CountMinSketch at key with the specified width and depth.

redis.cms.initbydim "orders:#{product_id}:#{date}"

[View source]
def initbyprob(key : String, error : Float | String, probability : Float | String) #

[View source]
def merge(destination : String, sources : Enumerable(String)) #

[View source]
def query(key : String, *items : String) #

[View source]