Skip to content

Commit 64f86d6

Browse files
authored
disconnect in basic example (#2235)
1 parent 59256f8 commit 64f86d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ await client.connect();
5252

5353
await client.set('key', 'value');
5454
const value = await client.get('key');
55+
await client.disconnect();
5556
```
5657

5758
The above code connects to localhost on port 6379. To connect to a different host or port, use a connection string in the format `redis[s]://[[username][:password]@][host][:port][/db-number]`:

0 commit comments

Comments
 (0)