LMOVE

Moves the source list's leftmost element to the destination's right end.

Lists · Example verified

Syntax covered here

LMOVE source destination LEFT RIGHT

The verified LEFT RIGHT form returns the element selected from the source's head.

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
> LMOVE queue destination LEFT RIGHT
"a"