You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go-redis requires a Go version with [Modules](https://github.com/golang/go/wiki/Modules) support and uses import versioning. So please make sure to initialize a Go module before installing go-redis:
31
31
32
-
```shell
33
-
go get -u github.com/go-redis/redis/v7
32
+
```shell
33
+
go mod init github.com/my/repo
34
+
go get github.com/go-redis/redis/v7
34
35
```
35
36
36
37
Import:
37
38
38
-
```go
39
+
```go
39
40
import"github.com/go-redis/redis/v7"
40
41
```
41
42
42
43
## Quickstart
43
44
44
-
```go
45
+
```go
45
46
funcExampleNewClient() {
46
47
client:= redis.NewClient(&redis.Options{
47
48
Addr: "localhost:6379",
@@ -87,7 +88,7 @@ Please go through [examples](https://godoc.org/github.com/go-redis/redis#pkg-exa
0 commit comments