You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: API.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -221,6 +221,7 @@ Creates a Redis Cluster instance
221
221
|[options.maxRedirections]| <code>number</code> | <code>16</code> | When a MOVED or ASK error is received, client will redirect the command to another node. This option limits the max redirections allowed to send a command. |
222
222
|[options.retryDelayOnFailover]| <code>number</code> | <code>100</code> | When an error is received when sending a command(e.g. "Connection is closed." when the target Redis node is down), |
223
223
|[options.retryDelayOnClusterDown]| <code>number</code> | <code>100</code> | When a CLUSTERDOWN error is received, client will retry if `retryDelayOnClusterDown` is valid delay time. |
224
+
|[options.retryDelayOnTryAgain]| <code>number</code> | <code>100</code> | When a TRYAGAIN error is received, client will retry if `retryDelayOnTryAgain` is valid delay time. |
224
225
|[options.redisOptions]| <code>Object</code> || Passed to the constructor of `Redis`. |
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -678,6 +678,8 @@ but a few so that if one is unreachable the client will try the next one, and th
678
678
to insure that no command will fail during a failover.
679
679
*`retryDelayOnClusterDown`: When a cluster is down, all commands will be rejected with the error of `CLUSTERDOWN`. If this option is a number (by default, it is `100`), the client
680
680
will resend the commands after the specified time (in ms).
681
+
*`retryDelayOnTryAgain`: If this option is a number (by default, it is `100`), the client
682
+
will resend the commands rejected with `TRYAGAIN` error after the specified time (in ms).
681
683
*`redisOptions`: Default options passed to the constructor of `Redis` when connecting to a node.
0 commit comments