TOPK.COUNT (deprecated)

As of Bloom version 2.4, this command is regarded as deprecated.

Syntax
TOPK.COUNT key item [item ...]
Available in:
Redis Stack / Bloom 2.0.0
Time complexity:
O(n) where n is the number of items

Returns count for an item. Multiple items can be requested at once. Please note this number will never be higher than the real count and likely to be lower.

This command has been deprecated. The count value is not a representative of the number of appearances of an item.

Parameters

  • key: Name of sketch where item is counted.
  • item: Item/s to be counted.

Return

Array reply of Integer reply - count for responding item.

Examples

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