Skip to content
masterclass Buddy

Redis · Command

ZPOPMAX

ZPOPMAX removes and returns the highest-scoring members in a sorted set. It removes one member by default or up to the requested count.

Last updated

Since
5.0.0

Syntax

ZPOPMAX key [count]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • BZPOPMAX
  • BZPOPMIN
  • ZADD
  • ZCARD
  • ZMPOP
  • ZPOPMIN
  • ZRANGE
  • ZSCORE

Source: ZPOPMAX | Docs. Checked 2026-11-03.