We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c828764 commit 9073e40Copy full SHA for 9073e40
README.md
@@ -149,15 +149,16 @@ import (
149
"github.com/redis/go-redis/v9"
150
)
151
152
-var ctx = context.Background()
153
-
154
-func ExampleClient() {
+func ExampleClient() *redis.Client {
155
url := "redis://user:password@localhost:6379/0?protocol=3"
156
opts, err := redis.ParseURL(url)
157
if err != nil {
158
panic(err)
159
}
160
- rdb := redis.NewClient(opts)
+
+ return redis.NewClient(opts)
+}
161
162
```
163
164
## Contributing
example/lua-scripting/go.mod
@@ -1,4 +1,4 @@
1
-module github.com/redis/go-redis/example/redis-bloom
+module github.com/redis/go-redis/example/lua-scripting
2
3
go 1.18
4
0 commit comments