TOPK.QUERY key item [item ...]
@topk,
@read,
@slow,
Checks whether one or more items are one of the Top-K items.
redis> TOPK.QUERY topk 42 nonexist
1) (integer) 1
2) (integer) 0
| Redis Enterprise |
Redis Cloud |
Notes |
|---|---|---|
| ✅ Supported |
✅ Flexible & Annual ✅ Free & Fixed |
One of the following:
1 if an item is in the Top-K or 0 otherwise.