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)