How do I remove a range of items from list?

17 views
Skip to first unread message

Alisson Cavalcante Agiani

unread,
Apr 8, 2015, 1:15:35 PM4/8/15
to redi...@googlegroups.com
I thought that lrange in combination with ltrim would do the trick but it won't

Alisson Cavalcante Agiani

unread,
Apr 8, 2015, 2:02:45 PM4/8/15
to redi...@googlegroups.com
I think I solved my use case with redis.multi().lrange(key, 0, quantity - 1).ltrim(key, quantity, -1).exec()
Reply all
Reply to author
Forward
0 new messages