What is the most efficient way to pop atomically a large amount of
items from a list?
I'm thinking of usage of the following set of commands:
MULTI
LRANGE foo X Y
LTRIM foo X Y
EXEC
What do you think?
P.S. Wouldn't it be nice to have an optional argument for LTRIM which
would make it return the trimmed stuff?
--
Best regards, Pavel
That is the right way.
> P.S. Wouldn't it be nice to have an optional argument for LTRIM which
> would make it return the trimmed stuff?
Sure, but then there would be 2 ways to do the exact same thing that
is easily performed with the existing commands.
- Josiah
Thanks.
--
Best regards, Pavel