Available since: 7.0.0
Time complexity: O(K) + O(N*log(M)) 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.
BZMPOP is the blocking variant of
When any of the sorted sets contains elements, this command behaves exactly like
When used inside a
EXEC block, this command behaves exactly like
When all sorted sets are empty, Redis 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.
timeout of zero can be used to block indefinitely.
ZMPOP for more information.
Array reply: specifically:
nilwhen no element could be popped.