Removes and returns a member by score from one or more sorted sets. Blocks until a member is available otherwise. Deletes the sorted set if the last element was popped.
BZMPOP timeout
numkeys key [key…]
<MIN |
MAX>
[COUNT count]
BZMPOP is the blocking variant of
ZMPOP.
When any of the sorted sets contains elements, this command behaves
exactly like ZMPOP. When used inside a
MULTI/EXEC block, this command behaves exactly
like ZMPOP. When all sorted sets are empty, Valkey will
block the connection until another client adds members to one of the
keys or until the timeout (a double value specifying the
maximum number of seconds to block) elapses. A timeout of
zero can be used to block indefinitely.
See ZMPOP for more information.
One of the following:
O(K) + O(M*log(N)) where K is the number of provided keys, N being the number of elements in the sorted set, and M being the number of elements popped.
@blocking @slow @sortedset @write
BZPOPMAX, BZPOPMIN, ZADD, ZCARD, ZCOUNT, ZDIFF, ZDIFFSTORE, ZINCRBY, ZINTER, ZINTERCARD, ZINTERSTORE, ZLEXCOUNT, ZMPOP, ZMSCORE, ZPOPMAX, ZPOPMIN, ZRANDMEMBER, ZRANGE, ZRANGEBYLEX, ZRANGEBYSCORE, ZRANGESTORE, ZRANK, ZREM, ZREMRANGEBYLEX, ZREMRANGEBYRANK, ZREMRANGEBYSCORE, ZREVRANGE, ZREVRANGEBYLEX, ZREVRANGEBYSCORE, ZREVRANK, ZSCAN, ZSCORE, ZUNION, ZUNIONSTORE.