In Redis, the BLMPOP
command is the blocking variant of LMPOP
.
Just like the LMPOP
command, BLMPOP
pops one or more elements from the first non-empty list key from the list of provided key names. However, unlike LMPOP
, if all lists are empty, BLMPOP
blocks the connection until another client pushes to it or until the timeout
(a double value specifying the maximum number of seconds to block) elapses.