TOPK.ADD
TOPK.ADD key items [items ...]
Adds an item to the data structure. Multiple items can be added at once. If an item enters the Top-K list, the item which is expelled is returned. This allows dynamic heavy-hitter detection of items being entered or expelled from Top-K list.
Array reply of Simple string reply - if an element was dropped from the TopK list, Null reply otherwise..
redis> TOPK.ADD topk foo bar 42 1) (nil) 2) baz 3) (nil)
© 2006–2022 Salvatore Sanfilippo
Licensed under the Creative Commons Attribution-ShareAlike License 4.0.
https://redis.io/commands/topk.add/