TOPK.COUNT (已弃用)

自 Bloom 2.4 版本起,此命令被视为已弃用。

语法
TOPK.COUNT key item [item ...]
可用版本
Redis 开源版 / Bloom 2.0.0
时间复杂度
O(n),其中 n 是项的数量
ACL 类别
@topk, @read, @slow,

返回项的计数。可以同时请求多个项。请注意,此数字永远不会高于实际计数,并且很可能低于实际计数。

此命令已被弃用。计数并非项出现次数的代表性值。

参数

  • key:计数项所在的 sketch 名称。
  • item:要计数的项。

返回值

数组回复 中的 整数回复 - 对应项的计数。

示例

redis> TOPK.COUNT topk foo 42 nonexist
1) (integer) 3
2) (integer) 1
3) (integer) 0

评价此页面
返回顶部 ↑
© . This site is unofficial and not affiliated with Redis, Inc.