mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
docs(redis): replace client.disconnect() with client.close() (#19005)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user