From 19f9bb3ad09c7daab2ab7f45286d50bd304bbfc7 Mon Sep 17 00:00:00 2001 From: Eduard Itrich Date: Fri, 23 Jan 2026 13:03:34 +0100 Subject: [PATCH 1/2] Add socket.servname property to createClient configuration. This property is needed if the Redis server needs SNI enabled for TLS handshake. Signed-off-by: Eduard Itrich --- docs/client-configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/client-configuration.md b/docs/client-configuration.md index 57af626bf71..5f4d0c95ad6 100644 --- a/docs/client-configuration.md +++ b/docs/client-configuration.md @@ -6,6 +6,7 @@ | socket | | Socket connection properties. Unlisted [`net.connect`](https://nodejs.org/api/net.html#socketconnectoptions-connectlistener) properties (and [`tls.connect`](https://nodejs.org/api/tls.html#tlsconnectoptions-callback)) are also supported | | socket.port | `6379` | Redis server port | | socket.host | `'localhost'` | Redis server hostname | +| socket.servername | | Redis server hostname | | socket.family | `0` | IP Stack version (one of `4 \| 6 \| 0`) | | socket.path | | Path to the UNIX Socket | | socket.connectTimeout | `5000` | Connection timeout (in milliseconds) | @@ -93,4 +94,3 @@ createClient({ In most cases, a single Redis connection is sufficient, as the node-redis client efficiently handles commands using an underlying socket. Unlike traditional databases, Redis does not require connection pooling for optimal performance. However, if your use case requires exclusive connections see [RedisClientPool](https://github.com/redis/node-redis/blob/master/docs/pool.md), which allows you to create and manage multiple dedicated connections. - From e34e1fe4b301adcee8ecfc04aaa9bccbea893923 Mon Sep 17 00:00:00 2001 From: Eduard Itrich Date: Fri, 23 Jan 2026 13:13:15 +0100 Subject: [PATCH 2/2] Adjust description of socket.servername property Signed-off-by: Eduard Itrich --- docs/client-configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/client-configuration.md b/docs/client-configuration.md index 5f4d0c95ad6..ace10475be8 100644 --- a/docs/client-configuration.md +++ b/docs/client-configuration.md @@ -6,7 +6,7 @@ | socket | | Socket connection properties. Unlisted [`net.connect`](https://nodejs.org/api/net.html#socketconnectoptions-connectlistener) properties (and [`tls.connect`](https://nodejs.org/api/tls.html#tlsconnectoptions-callback)) are also supported | | socket.port | `6379` | Redis server port | | socket.host | `'localhost'` | Redis server hostname | -| socket.servername | | Redis server hostname | +| socket.servername | | Server name for the SNI (Server Name Indication) TLS extension. Set this property if the Redis server requires SNI during TLS handshake. | | socket.family | `0` | IP Stack version (one of `4 \| 6 \| 0`) | | socket.path | | Path to the UNIX Socket | | socket.connectTimeout | `5000` | Connection timeout (in milliseconds) |