CMS.INCRBY

Syntax
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,

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.

Examples

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

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 ↑