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:
- Array reply of simple string and integer pairs. For decay, a simple string reply is used to represent the floating point value.
- Simple error reply in these cases: incorrect number of arguments, non-existant key, or key of the incorrect type.