CMS.INCRBY

CMS.INCRBY key item increment [item increment ...]
Available in:
Redis Open Source / Bloom 2.0.0
Time complexity:
O(n) where n is the number of items
ACL categories:
@cms, @write,
Compatibility:
Redis Software and Redis Cloud compatibility

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

Required arguments

key

The name of the sketch.

item increment [item increment ...]

One or more item-increment pairs. Each item's counter is increased by its corresponding increment.

Examples

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

Redis Software and Redis Cloud compatibility

Redis
Software
Redis
Cloud
Notes
✅ Supported
✅ Flexible & Annual
✅ Free & Fixed

Return information

One of the following:

  • Array of integer replies representing updated min-counts of each of the provided items in the sketch.
  • Simple error reply in these cases: invalid arguments, missing key, overflow, or wrong key type.
RATE THIS PAGE
Back to top ↑