1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00

Merge branch 'master' of https://github.com/hpeinar/node_redis into hpeinar-master

This commit is contained in:
Bryce Baril
2013-07-24 08:09:53 -07:00
2 changed files with 4 additions and 0 deletions

View File

@@ -209,6 +209,7 @@ to maximum value, provided in milliseconds.
limits total time for client to reconnect. Value is provided in milliseconds and is counted once the disconnect occured.
* `max_attempts` defaults to `null`. By default client will try reconnecting until connected. Setting `max_attempts`
limits total amount of reconnects.
* `auth_pass` defaults to `null`. By default client will try connecting without auth. If set, client will run redis auth command on connect.
```js
var redis = require("redis"),

View File

@@ -67,6 +67,9 @@ function RedisClient(stream, options) {
this.closing = false;
this.server_info = {};
this.auth_pass = null;
if(options.auth_pass !== undefined) {
this.auth_pass = options.auth_pass;
}
this.parser_module = null;
this.selected_db = null; // save the selected db here, used when reconnecting