ZPOPMIN key [count]
- Available since:
- Time complexity:
- O(log(N)*M) with N being the number of elements in the sorted set, and M being the number of elements popped.
- ACL categories:
Removes and returns up to
count members with the lowest scores in the sorted
set stored at
When left unspecified, the default value for
count is 1. Specifying a
value that is higher than the sorted set's cardinality will not produce an
error. When returning multiple elements, the one with the lowest score will
be the first, followed by the elements with greater scores.
Array reply: list of popped elements and scores.