vjzning / redis

Automatically exported from code.google.com/p/redis
https://code.google.com/p/redis/
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

[Feature Request] ZMOVE, moving between sorted sets #164

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I believe that atomic ZMOVE command similar to SMOVE can be very useful.
It can be emulated through pipelining pair of ZADD, ZREM, but it's not very 
convenient.

Original issue reported on code.google.com by rmih...@gmail.com on 25 Feb 2010 at 2:45

GoogleCodeExporter commented 9 years ago
My bad, it can not be emulated. For a moment I thought that pipelining runs all 
commands atomically, which it 
wrong.

Original comment by rmih...@gmail.com on 25 Feb 2010 at 3:15

GoogleCodeExporter commented 9 years ago
multi/exec can do it, in an atomic way, so yes @rmihael it can be done without 
problems :)
Why do you think it is not convenient?

Cheers,
Salvatore

Original comment by anti...@gmail.com on 24 Aug 2010 at 2:11

GoogleCodeExporter commented 9 years ago
How do I implement ZMOVE with WATCH?
http://stackoverflow.com/questions/4834831/implement-zmove-with-watch-in-redis

Original comment by sara...@gmail.com on 29 Jan 2011 at 2:53