From c6701ac174bb32864ae38e0a1cd3ec80e4b1dd0c Mon Sep 17 00:00:00 2001 From: David Legrand <1110600+davlgd@users.noreply.github.com> Date: Mon, 14 Apr 2025 21:16:17 +0200 Subject: [PATCH] docs(redis): replace client.disconnect() with client.close() (#19005) --- docs/api/redis.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/redis.md b/docs/api/redis.md index 2ec5e03987..366541c133 100644 --- a/docs/api/redis.md +++ b/docs/api/redis.md @@ -81,7 +81,7 @@ await client.set("key", "value"); await client.get("key"); // Explicitly close the connection when done -client.disconnect(); +client.close(); ``` You can also manually control the connection lifecycle: