Bot releases are hidden (Show)
Bugfixes
Bugfixes
Bugfixes
Published by BridgeAR about 9 years ago
The peregrino falcon is the fasted bird on earth and this is what this release is all about: Increased performance for heavy usage by up to 400% [sic!] and increased overall performance for any command as well. Please check the benchmarks in the README.md for further details.
Features
Bugfixes
If you do not rely on transactions but want to reduce the RTT you can use .batch from now on. It'll behave just the same as .multi but it does not have any transaction and therefor won't roll back any failed commands.
Both .multi and .batch are from now on going to cache the commands and release them while calling .exec.
Please consider using .batch instead of looping through a lot of commands one by one. This will significantly improve your performance.
Here are some stats compared to ioredis 1.9.1 (Lenovo T450s i7-5600U):
simple set
82,496 op/s » ioredis
112,617 op/s » node_redis
simple get
82,015 op/s » ioredis
105,701 op/s » node_redis
simple get with pipeline
10,233 op/s » ioredis
26,541 op/s » node_redis (using .batch)
lrange 100
7,321 op/s » ioredis
26,155 op/s » node_redis
publish
90,524 op/s » ioredis
112,823 op/s » node_redis
subscribe
43,783 op/s » ioredis
61,889 op/s » node_redis
To conclude: we can proudly say that node_redis is very likely outperforming any other node redis client.
Known issues
.end
. If set to true, commands fired after using .end are going to be rejected instead of being ignored. (@crispy1989)Published by BridgeAR about 9 years ago
#866 Fix argument mutation while using the array notation in combination with keys / callbacks (@BridgeAR)
Published by BridgeAR about 9 years ago
This is the biggest release that node_redis had since it was released in 2010. A long list of outstanding bugs has been fixed, so we are very happy to present you redis 2.0 and we highly recommend updating as soon as possible.
err.code
property (@BridgeAR)err.code
property. (@skeggse & @BridgeAR)err.command
property for the command used (@BridgeAR)send_command
directly may no also be called without the args as stated in the README.md (@BridgeAR).send_command
directly instead of the convenient methods like redis.command
..errors
property instead of an array with errors.err, undefined
instead of null, undefined
).multi.exec
does not have a callback and an EXECABORT error occurrs, it'll emit that error instead.redis.server_info
(db0...) is from now on an object instead of an string.NodeRedis also thanks @qdb, @tobek, @cvibhagool, @frewsxcv, @davidbanham, @serv, @vitaliylag, @chrishamant, @GamingCoder and all other contributors that I may have missed for their contributions!
From now on we'll push new releases more frequently out and fix further long outstanding things and implement new features.
Published by bcoe about 9 years ago