From 20e0848cda4465cb3c0028f0a9fe2a07f6038b10 Mon Sep 17 00:00:00 2001 From: reviewher <24845478+reviewher@users.noreply.github.com> Date: Tue, 16 Aug 2022 01:51:25 -0400 Subject: [PATCH] disconnect in basic example --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 9d48bdd6b2a..0a3e3410342 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,7 @@ await client.connect(); await client.set('key', 'value'); const value = await client.get('key'); +await client.disconnect(); ``` 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]`: