Sorted Set
ZRANGE
Returns the specified range of elements in the sorted set stored at key.
Arguments
The key to get.
The minimum value to include.
The maximum value to include.
“-inf” and “+inf” are also valid values for the ranges
Whether to include the scores in the response.
Whether to reverse the order of the response.
If bylex
The offset to start from.
The number of elements to return.
Response
The values in the specified range.
If withscores
is true, the members will be tuples of the form (member, score)
.
Was this page helpful?