LMPOP
Removes a requested batch from the left end of a list.
Lists · Example verified
Syntax covered here
LMPOP numkeys key LEFT COUNT countThe case supplies one key and removes two elements in list order, with the source key identified in the result.
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
> LMPOP 1 queue LEFT COUNT 2
["queue",["a","b"]]