BRPOPLPUSH

Moves the source's rightmost element to the destination's left end, waiting when necessary.

Lists · Example verified

Syntax covered here

BRPOPLPUSH source destination timeout-seconds

The tested timeout accepts fractional seconds; a missing source results in null when the wait expires.

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
> BRPOPLPUSH queue destination 0.1
"c"
# connection: default
> BRPOPLPUSH missing-list destination 0.1
null