Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add docu for options: max_attempts, connect_timeout #405

Merged
merged 1 commit into from

2 participants

@tomaszdurka

No description provided.

@tomaszdurka

@brycebaril Added two options for a good start. Cheers.

@brycebaril brycebaril merged commit 13d5369 into from
@brycebaril
Collaborator

Excellent, thanks for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 17, 2013
  1. @tomaszdurka
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 0 deletions.
  1. +4 −0 README.md
View
4 README.md
@@ -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"),
Something went wrong with that request. Please try again.