docs(redis): replace client.disconnect() with client.close() (#19005)

This commit is contained in:
David Legrand
2025-04-14 21:16:17 +02:00
committed by GitHub
parent 7e03e5e712
commit c6701ac174

View File

@@ -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: