CMS.INITBYDIM
Syntax
CMS.INITBYDIM key width depth
- Available in:
- Redis Stack / Bloom 2.0.0
- Time complexity:
- O(1)
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).
Return
Simple string reply - OK
if executed correctly, or [] otherwise.
Examples
redis> CMS.INITBYDIM test 2000 5
OK