struct
Redis::CountMinSketch
- Redis::CountMinSketch
- Struct
- Value
- Object
Defined in:
count_min_sketch.crConstructors
Instance Method Summary
- #incrby(key : String, item : String, increment : Int | String)
- #info(key : String)
-
#initbydim(key : String, width : Int | String, depth : Int | String)
Initializes a
CountMinSketchatkeywith the specifiedwidthanddepth. - #initbyprob(key : String, error : Float | String, probability : Float | String)
- #merge(destination : String, sources : Enumerable(String))
- #query(key : String, *items : String)
Constructor Detail
Instance Method Detail
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}"