From 6bd8d9ce28c9662325e668ec44aeb0f387f08d66 Mon Sep 17 00:00:00 2001 From: Sawit Trisirisatayawong Date: Tue, 11 Feb 2020 14:35:26 +0700 Subject: [PATCH] README Fix: Added client variable initialisation (redis.NewClient) in quickstartExampleClient() (#1257) * updated: readme quickstart --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index aa372bf..7331a56 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,11 @@ func ExampleNewClient() { } func ExampleClient() { + client := redis.NewClient(&redis.Options{ + Addr: "localhost:6379", + Password: "", // no password set + DB: 0, // use default DB + }) err := client.Set("key", "value", 0).Err() if err != nil { panic(err)