Permalink
Browse files

Merge pull request #405 from tomaszdurka/issue-405

Add docu for options: max_attempts, connect_timeout
  • Loading branch information...
2 parents d03d747 + c456315 commit 13d53695deeb1923a511083e42dc86e47a12124a @brycebaril brycebaril committed Mar 17, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 README.md
View
@@ -205,6 +205,10 @@ with an error, or an error will be thrown if no callback is specified.
* `retry_max_delay`: defaults to `null`. By default every time the client tries to connect and fails time before
reconnection (delay) almost doubles. This delay normally grows infinitely, but setting `retry_max_delay` limits delay
to maximum value, provided in miliseconds.
+* `connect_timeout` defaults to `false`. By default client will try reconnecting until connected. Setting `connect_timeout`
+limits total time for client to reconnect. Value is provided in miliseconds 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.
```js
var redis = require("redis"),

0 comments on commit 13d5369

Please sign in to comment.