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,
- Compatibility:
-
Redis Enterprise and Redis Cloud compatibility
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
Redis Enterprise and Redis Cloud compatibility
Redis Enterprise |
Redis Cloud |
Notes |
✅ Supported
|
✅ Flexible & Annual ✅ Free & Fixed |