BLMPOP
BLMPOP timeout numkeys key [key ...] <LEFT | RIGHT> [COUNT count]
@write, @list, @slow, @blocking, BLMPOP is the blocking variant of LMPOP.
When any of the lists contains elements, this command behaves exactly like LMPOP. When used inside a MULTI/EXEC block, this command behaves exactly like LMPOP. When all lists are empty, Redis will block the connection until another client pushes to it 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 LMPOP for more information.
Array reply: specifically:
nil when no element could be popped, and timeout is reached.
© 2006–2022 Salvatore Sanfilippo
Licensed under the Creative Commons Attribution-ShareAlike License 4.0.
https://redis.io/commands/blmpop/