1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00
Commit Graph

127 Commits

Author SHA1 Message Date
Matt Ranney
3cc297ada4 Contributed changes:
*  Support SlowBuffers (Umair Siddique)
*  Add Multi to exports (Louis-Philippe Perron)
*  Fix for drain event calculation (Vladimir Dronnikov)

Thanks!
2011-07-06 09:49:40 -05:00
Matt Ranney
891529c06a Fix bug with optional callbacks for hmset. 2011-06-30 16:13:57 -06:00
Matt Ranney
886b3355e1 Bugs fixed:
*  authentication retry while server is loading db (danmaz74) [GH-101]
*  command arguments processing issue with arrays

New features:

*  Auto update of new commands from redis.io (Dave Hoover)
*  Performance improvements and backpressure controls.
*  Commands now return the true/false value from the underlying socket write(s).
*  Implement command_queue high water and low water for more better control of queueing.

See `examples/backpressure_drain.js` for more information.
2011-06-30 14:29:58 -06:00
Matt Ranney
6e5112d664 Add support and tests for Redis scripting through EXEC command.
Bug fix for monitor mode.  (forddg)

Auto update of new commands from redis.io (Dave Hoover)
2011-06-29 00:45:43 -07:00
Matt Ranney
3d36711563 Auto update of new commands from redis.io (Dave Hoover)
Run this: node generate_commands.js

To fetch redis.io/commands.json and save it to a file that node_redis will read at startup.
2011-06-12 14:25:57 -10:00
Matt Ranney
c73af8d477 Update changelog 2011-04-21 16:57:22 -10:00
Matt Ranney
2c0ae38fb6 Update changelog. 2011-04-21 16:51:31 -10:00
Matt Ranney
f10ff9e916 Lots of bugs fixed.
*  connection error did not properly trigger reconnection logic [GH-85]
*  client.hmget(key, [val1, val2]) was not expanding properly [GH-66]
*  client.quit() while in pub/sub mode would throw an error [GH-87]
*  client.multi(['hmset', 'key', {foo: 'bar'}]) fails [GH-92]
2011-04-21 16:48:14 -10:00
Matt Ranney
f624fa6234 Added DISCARD
I originally didn't think DISCARD would do anything here because of the clever MULTI interface, but somebody
pointed out to me that DISCARD can be used to flush the WATCH set.
2011-04-07 08:58:01 -07:00
Matt Ranney
2b8b2cbd7f Added HVALS command 2011-04-06 09:50:29 -07:00
Matt Ranney
69a2572890 Fix bug with empty Array arguments - Andy Ray 2011-03-14 17:03:07 -10:00
Matt Ranney
2fcc947f11 Add MONITOR command and special monitor command reply parsing. 2011-03-14 15:50:47 -10:00
Matt Ranney
1a14e24faa Add magical auth command.
Authentication is now remembered by the client and will be automatically sent to the server
on every connection, including any reconnections.
2011-02-27 23:10:44 -10:00
Matt Ranney
29e09c1c16 Fix bug in ready check with return_buffers set to true.
Thanks to Dean Mao and Austin Chau.
2011-02-22 21:10:50 -10:00
Matt Ranney
ee93d1b91b Add probe for server readiness.
When a Redis server starts up, it might take a while to load the dataset into memory.
During this time, the server will accept connections, but will return errors for all non-INFO
commands.  Now node_redis will send an INFO command whenever it connects to a server.
If the info command indicates that the server is not ready, the client will keep trying until
the server is ready.  Once it is ready, the client will emit a "ready" event as well as the
"connect" event.  The client will queue up all commands sent before the server is ready, just
like it did before.  When the server is ready, all offline/non-ready commands will be replayed.
This should be backward compatible with previous versions.

To disable this ready check behavior, set `options.no_ready_check` when creating the client.

As a side effect of this change, the key/val params from the info command are available as
`client.server_options`.  Further, the version string is decomposed into individual elements
in `client.server_options.versions`.
2011-02-16 15:46:27 -10:00
Matt Ranney
0f907401f0 Fix excess memory consumption from Queue backing store.
Thanks to Gustaf Sjöberg.
2011-02-11 00:12:00 -10:00
Matt Ranney
2d7869261a Fix bug where unhandled error replies confuse the parser. 2011-01-19 18:14:32 -08:00
Matt Ranney
c1b5587e74 Fix bug where subscribe commands would not handle redis-server startup error properly. 2011-01-18 13:56:53 -08:00
Matt Ranney
ccce845cc2 Some bug fixes:
* An important bug fix in reconnection logic.  Previously, reply callbacks would be invoked twice after
  a reconnect.
* Changed error callback argument to be an actual Error object.

New feature:

* Add friendly syntax for HMSET using an object.
2010-12-29 17:48:40 -08:00
Matt Ranney
cfe0df1c3f Remove warning about missing hiredis. You probably do want it though. 2010-12-08 18:42:07 -08:00
Matt Ranney
b81da6d8fc Support for multiple response parsers and hiredis C library from Pieter Noordhuis.
Return Strings instead of Buffers by default.
Empty nested mb reply bug fix.
2010-12-08 16:15:45 -08:00
Matt Ranney
b907364573 Support for multiple reply parsers including hiredis.
Several parsing bugs fixed in JavaScript.
Some new config options that need to be better documented.
2010-12-06 09:11:16 -08:00
Matt Ranney
79511b4499 Fix parser bug after failed EXEC. 2010-11-30 11:47:52 -08:00
Matt Ranney
05e9699817 Fix for null MULTI response when WATCH condition fails. 2010-11-10 10:36:26 -08:00
Matt Ranney
1eb3f6a1aa Add "drain" and "idle" events. 2010-11-09 13:13:40 -08:00
Matt Ranney
81fc8516e4 Update for v0.3.6 2010-11-03 12:47:02 -07:00
Matt Ranney
ff517f1f2f Add changelog. 2010-10-21 20:24:45 -07:00