TOPK.COUNT (deprecated)

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

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.


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


Array reply of Integer reply - count for responding item.


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


If you've found issues on this page, or have suggestions for improvement, please submit a request to merge or open an issue in the repository.