ZPOPMIN

Apply for Redis Developer Course Redis Regular Inspection / Technical Support Redis Enterprise Server

Pop members with the lowest scores

Usage: zpopmin key [count].
The default count is 1.

Example

Command>zadd city 50 Tokey 60 Seoul 70 Beijing 80 "New York"
Result>4
Command>zpopmin city
Result> 1) "Tokey"
2) "50"
Command>zpopmin city 2
Result> 1) "Seoul"
2) "60"
3) "Beijing"
4) "70"


Syntax

ZPOPMIN key [count]

  • Available since version 5.0.0.
  • Time complexity is O(log(N)*M). N is the number of members in the set, and M is the number of members returned.

<< ZSCAN ZPOPMIN ZPOPMAX >>

Email 답글이 올라오면 이메일로 알려드리겠습니다.