BZMPOP
Since 1.1.0Sorted sets
Syntax
BZMPOP timeout numkeys key [key ...] MIN|MAX [COUNT count]ZMPOP that waits until one of the sorted sets has a member, or timeout seconds have passed.
Examples
> ZADD bz 1 y 2 w
(integer) 2
> BZMPOP 1 1 bz MAX COUNT 2
1) "bz"
2) 1) 1) "w"
2) "2"
2) 1) "y"
2) "1"