Skip to content

Commit 38eb603

Browse files
committed
Plain english explanation of default 'socket.reconnectStrategy'
1 parent 4a36c6f commit 38eb603

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/client-configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
| socket.keepAlive | `true` | Toggle [`keep-alive`](https://nodejs.org/api/net.html#socketsetkeepaliveenable-initialdelay) functionality |
1414
| socket.keepAliveInitialDelay | `5000` | If set to a positive number, it sets the initial delay before the first keepalive probe is sent on an idle socket |
1515
| socket.tls | | See explanation and examples [below](#TLS) |
16-
| socket.reconnectStrategy | `((retries^2) * 50 ms) + 0-200 ms` | A function containing the [Reconnect Strategy](#reconnect-strategy) logic |
16+
| socket.reconnectStrategy | Exponential backoff with a maximum of 2000 ms; plus 0-200 ms random jitter. | A function containing the [Reconnect Strategy](#reconnect-strategy) logic |
1717
| username | | ACL username ([see ACL guide](https://redis.io/topics/acl)) |
1818
| password | | ACL password or the old "--requirepass" password |
1919
| name | | Client name ([see `CLIENT SETNAME`](https://redis.io/commands/client-setname)) |

0 commit comments

Comments
 (0)