BLPOP
Removes a list's leftmost element, waiting up to a timeout when necessary.
Lists · Example verified
Syntax covered here
BLPOP key timeout-secondsThe cases verify an immediate pop and a null result when a missing list remains unavailable through a fractional-second timeout.
Tested example & replies
Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.
# connection: default
> RPUSH queue a b c
3
# connection: default
> BLPOP queue 0.1
["queue","a"]
# connection: default
> BLPOP missing-list 0.1
null