|
ZincrbyCommand
We moved to Redis.io!Redis home moved to http://redis.io, please visit our new home. |
► Sign in to add a comment
|
Search
|
|
ZincrbyCommand
We moved to Redis.io!Redis home moved to http://redis.io, please visit our new home. |
I suppose the return value is a bulk reply, specifically:
the score (a double precision floating point number) represented as string.
Usage: ZINCRBY set-name, incrby, set-key-name
Spec says Integer reply. Is this a mistake in the documentation?
A multi version of zincrby would be very useful. My program accumulates counters and currently has to issue a zincrby request to update each counter individually. This is costly. I'd rather update them all in one request at scheduled intervals. Benchmarks show that in my case 1000 calls to zincrby consume 14.773s total, and this eats up 30% of the program processing usage.