redis.zadd("myset", {"a": 1, "b": 2, "c": 3})

assert redis.zpopmax("myset") == [("c", 3)]

Arguments

key
str
required
The key of the sorted set
count
int
The number of members to pop

Response

A list of tuples containing the popped members and their scores
redis.zadd("myset", {"a": 1, "b": 2, "c": 3})

assert redis.zpopmax("myset") == [("c", 3)]