LPUSH
Prepends an element to a list.
Lists · Example verified
Syntax covered here
LPUSH key elementThe case adds one element to an existing list and reports its new length.
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
> LPUSH queue z
4