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
- Introduced `maintPushNotifications` option to control how the client handles Redis Enterprise maintenance push notifications (`disabled`, `enabled`, `auto`).
- Added `maintMovingEndpointType` option to specify the endpoint type for reconnecting during a MOVING notification (`auto`, `internal-ip`, `external-ip`, etc.).
- Added `maintRelaxedCommandTimeout` option to define a relaxed timeout for commands during maintenance.
- Added `maintRelaxedSocketTimeout` option to define a relaxed timeout for the socket during maintenance.
- Enforced RESP3 requirement for maintenance-related features (`maintPushNotifications`).
* Controls how the client requests the endpoint to reconnect to during a MOVING notification in Redis Enterprise maintenance.
159
+
*
160
+
* - `auto`: If the connection is opened to a name or IP address that is from/resolves to a reserved private IP range, request an internal endpoint (e.g., internal-ip), otherwise an external one. If TLS is enabled, then request a FQDN.
161
+
* - `internal-ip`: Enforce requesting the internal IP.
162
+
* - `internal-fqdn`: Enforce requesting the internal FQDN.
163
+
* - `external-ip`: Enforce requesting the external IP address.
164
+
* - `external-fqdn`: Enforce requesting the external FQDN.
165
+
* - `none`: Used to request a null endpoint, which tells the client to reconnect based on its current config
166
+
167
+
* The default is `auto`.
168
+
*/
169
+
maintMovingEndpointType?: MovingEndpointType;
170
+
/**
171
+
* Specifies a more relaxed timeout (in milliseconds) for commands during a maintenance window.
172
+
* This helps minimize command timeouts during maintenance. If not provided, the `commandOptions.timeout`
173
+
* will be used instead. Timeouts during maintenance period result in a `CommandTimeoutDuringMaintanance` error.
174
+
*
175
+
* The default is 10000
176
+
*/
177
+
maintRelaxedCommandTimeout?: number;
178
+
/**
179
+
* Specifies a more relaxed timeout (in milliseconds) for the socket during a maintenance window.
180
+
* This helps minimize socket timeouts during maintenance. If not provided, the `socket.timeout`
181
+
* will be used instead. Timeouts during maintenance period result in a `SocketTimeoutDuringMaintanance` error.
182
+
*
183
+
* The default is 10000
184
+
*/
185
+
maintRelaxedSocketTimeout?: number;
186
+
};
148
187
149
188
typeWithCommands<
150
189
RESPextendsRespVersions,
@@ -485,7 +524,12 @@ export default class RedisClient<
485
524
thrownewError('Client Side Caching is only supported with RESP3');
0 commit comments