CMS.INCRBY key item increment [ item increment ...]

Available in: Redis Stack

Time complexity: O(n) where n is the number of items

Increases the count of item by increment. Multiple items can be increased with one call.


  • key: The name of the sketch.
  • item: The item which counter is to be increased.
  • increment: Amount by which the item counter is to be increased.


[] with an updated min-count of each of the items in the sketch.

Count of each item after increment.


redis> CMS.INCRBY test foo 10 bar 42
1) (integer) 10
2) (integer) 42