TOPK.QUERY
TOPK.QUERY key item [item ...]
Checks whether an item is one of Top-K items. Multiple items can be checked at once.
Array reply of Integer reply - "1" if item is in Top-K, otherwise "0".
redis> TOPK.QUERY topk 42 nonexist 1) (integer) 1 2) (integer) 0
© 2006–2022 Salvatore Sanfilippo
Licensed under the Creative Commons Attribution-ShareAlike License 4.0.
https://redis.io/commands/topk.query/