Arguments
str
required
The key of the sorted set
int
The number of members to pop
Response
A list of tuples containing the popped members and their scores
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
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.
redis.zadd("myset", {"a": 1, "b": 2, "c": 3})
assert redis.zpopmax("myset") == [("c", 3)]
Was this page helpful?