CMS.INITBYDIM
Syntax
CMS.INITBYDIM key width depth
- Available in:
- Redis Open Source / Bloom 2.0.0
- Time complexity:
- O(1)
- ACL categories:
-
@cms
,@write
,@fast
,
Initializes a Count-Min Sketch to dimensions specified by user.
Parameters:
- key: The name of the sketch.
- width: Number of counters in each array. Reduces the error size.
- depth: Number of counter-arrays. Reduces the probability for an error of a certain size (percentage of total count).
Examples
redis> CMS.INITBYDIM test 2000 5
OK
Return information
One of the following:
- Simple string reply
OK
if executed correctly. - Simple error reply if the given key already exists.