TOPK.INFO

Syntax
TOPK.INFO key
Available in:
Redis Open Source / Bloom 2.0.0
Time complexity:
O(1)
ACL categories:
@topk, @read, @fast,
Compatibility:
Redis Enterprise and Redis Cloud compatibility

Returns number of required items (k), width, depth, and decay values of a given sketch.

Parameters

  • key: the name of the sketch.

Examples

TOPK.INFO topk
1) k
2) (integer) 50
3) width
4) (integer) 2000
5) depth
6) (integer) 7
7) decay
8) "0.92500000000000004"

Redis Enterprise and Redis Cloud compatibility

Redis
Enterprise
Redis
Cloud
Notes
✅ Supported
✅ Flexible & Annual
✅ Free & Fixed

Return information

One of the following: