Module Hub Beta


key from to [DESC|ASC]

Returns the elements in the percentile range.

Both from and to must be between 0 and 100, and from must be less than or equal to to. The optional switch determines the reply’s sort order, where DESC (the default) means ordering from highest to lowest frequency.

Return Value

Array reply: an array of strings, each an element.


redis> TOPK.DEBUB MAKE tk 100
redis> TOPK.PRANGE tk 90 100
1) “100”
2) “100”
3) “99”
4) “98”
5) “97”
6) “96”

© 2017 Redis Labs, Inc. All rights reserved.