redis.zadd("myset", {"a": 1, "b": 2, "c": 3}) assert redis.zpopmax("myset") == [("c", 3)]
Removes and returns up to count members with the highest scores in the sorted set stored at key.
Was this page helpful?