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
+4-4
Original file line number
Diff line number
Diff line change
@@ -216,11 +216,11 @@ Creates a Redis Cluster instance
216
216
| options | <code>Object</code> |||
217
217
|[options.enableOfflineQueue]| <code>boolean</code> | <code>true</code> | See Redis class |
218
218
|[options.lazyConnect]| <code>boolean</code> | <code>false</code> | See Redis class |
219
-
|[options.scaleReads]| <code>string</code> | <code>"\"masters\""</code> | Scale reads to the node with the specified role. Available values are "masters", "slaves" and "all". |
219
+
|[options.scaleReads]| <code>string</code> | <code>"masters"</code> | Scale reads to the node with the specified role. Available values are "masters", "slaves" and "all". |
220
220
|[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. |
221
221
|[options.clusterRetryStrategy]| <code>function</code> || See "Quick Start" section |
222
-
|[options.retryDelayOnFailover]| <code>number</code> | <code>2000</code> | When an error is received when sending a command(e.g. "Connection is closed." when the target Redis node is down), |
223
-
|[options.retryDelayOnClusterDown]| <code>number</code> | <code>1000</code> | When a CLUSTERDOWN error is received, client will retry if `retryDelayOnClusterDown` is valid delay time. |
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
+
|[options.retryDelayOnClusterDown]| <code>number</code> | <code>100</code> | When a CLUSTERDOWN error is received, client will retry if `retryDelayOnClusterDown` is valid delay time. |
224
224
225
225
<aname="Cluster+connect"></a>
226
226
### cluster.connect() ⇒ <code>Promise</code>
@@ -244,7 +244,7 @@ Get nodes with the specified role
0 commit comments