Module Hub Beta



Removes and returns the element with the lowest score from a Sorted Set.

Return Value

Array reply: an array with the popped element and its score, if WITHSCORE is used.


redis> ZADD myzset 1 a 2 b 3 c
(integer) 3
redis> ZPOP myzset
1) “a”
redis> ZPOP myzset WITHSCORE
1) “b”
2) “2”

© 2017 Redis Labs, Inc. All rights reserved.