TOPK.LIST key [WITHCOUNT]
@topk,
@read,
@slow,
Return the full list of items in Top-K sketch.
TOPK.LIST topk
1) foo
2) 42
3) bar
TOPK.LIST topk WITHCOUNT
1) foo
2) (integer) 12
3) 42
4) (integer) 7
5) bar
6) (integer) 2
| Redis Enterprise |
Redis Cloud |
Notes |
|---|---|---|
| ✅ Supported |
✅ Flexible & Annual ✅ Free & Fixed |
k (or less) items in the given Top-k sketch. The list is sorted by decreased count estimation.
One of the following:
WITHCOUNT is requested, an array of bulk string reply and
integer reply pairs, representing the names of the items in the sketch together with their counts.