redis.zadd("myset", {"a": 1, "b": 2, "c": 3}) assert redis.zrange("myset", 0, 1) == ["a", "b"]
Returns the specified range of elements in the sorted set stored at key.
withscores
(member, score)
Was this page helpful?