Popping from Sorted Sets

Difficulty: Intermediate

Question

How do you remove and retrieve the member with the highest score from a Sorted Set?

Answer

Use `ZPOPMAX myset`.

Concepts covered

Leaderboards, Sorting