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
通过增量增加项目的计数。可以通过一次调用增加多个项目。
参数:
- key: 草图的名称。
- item: 要增加计数器的项目。
- increment: 项目计数器要增加的金额。
返回
Array reply 的 Integer reply 带有更新后的每个项目的 min-count 值。
每个项目增加后的计数。
示例
redis> CMS.INCRBY test foo 10 bar 42
1) (integer) 10
2) (integer) 42