Is it possible to remove element from list by it index? I read manual
and does't find such command. Is it possible to add this feature?
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To post to this group, send email to redi...@googlegroups.com.
To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.
Actually it's not a bad trick at all... in the general form this could
be something like to LSETting to an "invalid" element, like
"__deleted__", and then calling LREM against it.
The reason there there isn't a remove by index operation is that it
does not play well with Redis atomic operations. There is no way
without an explicit lock to use it in a safe way.
Cheers,
Salvatore
--
Salvatore 'antirez' Sanfilippo
http://invece.org
"Once you have something that grows faster than education grows,
you’re always going to get a pop culture.", Alan Kay