CMS.INITBYDIM
Syntax
CMS.INITBYDIM key width depth
Time complexity: O(1)
ACL categories: @cms
Initializes a Count-Min Sketch filter at key with the given width and depth dimensions.
width: The number of counters in each row (affects accuracy — a larger width reduces the error rate).depth: The number of hash functions / rows (affects confidence — a larger depth reduces the probability of error).
If key already exists, an error is returned.
Return
Simple string reply: OK if the sketch was created successfully.
Examples
dragonfly> CMS.INITBYDIM cms_key 2000 5
OK