CMS.INCRBY

Syntax
CMS.INCRBY key item increment [item increment ...]
Available in:
Redis Stack / Bloom 2.0.0
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.

Parameters:

  • 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.

Return

Array reply of Integer reply with an updated min-count of each of the items in the sketch.

Count of each item after increment.

Examples

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

Rate this page