CMS.INFO
CMS.INFO key
- Group
- Count-min sketch
- Complexity
- O(1)
- Arity
- -1 (at least 1 words, counting the command name)
- Flags
- fast
- Keys
- first 1, last 1, step 1
- HotKV Cloud
- All plans
- On-Premise
- no license needed
CMS.INFO returns the dimensions of the Count-min sketch at key and the
total of all increments it has counted.
Fields
Section titled “Fields”| Field | Meaning |
|---|---|
width |
Counters per row. |
depth |
Number of rows. |
count |
Sum of all increments (after a CMS.MERGE, the weighted sum of the sources’ counts). |
Return value
Section titled “Return value”| Case | RESP2 | RESP3 |
|---|---|---|
| Sketch exists | Flat array of field names and integer values | Map |
Error replies: CMS: key does not exist, and WRONGTYPE.
Examples
Section titled “Examples”127.0.0.1:6379> CMS.INITBYDIM pageviews 2000 5OK127.0.0.1:6379> CMS.INCRBY pageviews /home 3 /pricing 11) (integer) 32) (integer) 1127.0.0.1:6379> CMS.INFO pageviews1) width2) (integer) 20003) depth4) (integer) 55) count6) (integer) 4Compatibility
Section titled “Compatibility”Same as CMS.INFO in RedisBloom.
See also
Section titled “See also”Was this helpful?
Thanks for the feedback.