Can I find any multi/bulk key incr method in the Java API, similar to these?
Perl: Multi version of "arithmetic"
incr_multi( [key, amount], ... )
decr_multi( [key, amount], ... )
I'v already opened a JIRA ticket around this issue -> if You don't mind.
You are right, those are currently not exposed. We will consider it for a future API enhancement, but I'm not sure how likely it is right now. You can just run your own loop and add them, this shouldn't give you less performance.
I was just wandering >>> because 1 OP is BETTER than 4 or 6 OP
Daschl, in API level the "MultiIncrImpl" is just a hidden simple loop in the client driver?
You can just run your own loop and add them, this shouldn't give you less performance.
Okay, but than -> my problem will be AGAIN the atomicity
We have to be SURE about these looped INCR calls will work atomic...
So my question is:
Can I use any LOCK for these INCR calls (or who will care about the atomicity)?!
Thank You in Advance,