Open GoogleCodeExporter opened 8 years ago
I wonder if you could achieve the same behavior using WATCH?
WATCH zset
score = ZSCORE zset element
if score == nil or score < new_score
MULTI
ZADD zset new_score element
EXEC
else
UNWATCH
end
Original comment by damian.j...@gmail.com
on 13 Dec 2010 at 12:11
Original comment by damian.j...@gmail.com
on 13 Dec 2010 at 12:13
Agreed, though we want to do *many* of these ops and the watch seems
inelegant/expensive.
Original comment by d...@dangould.com
on 13 Dec 2010 at 12:26
IMHO, WATCH is definitely what should be used here, and it isn't all that
expensive. I don't want to speak for all users of Redis, but I feel like ZADDLT
is not an operation that many users will utilize. Nevertheless, look at how
many "commands" (loosely speaking) a MySQL Server supports.
Original comment by compwiz...@gmail.com
on 24 Jun 2011 at 3:29
Original issue reported on code.google.com by
d...@dangould.com
on 10 Dec 2010 at 8:03