mirror of https://github.com/go-redis/redis.git
docs: updated "Installation" description in README.md
Signed-off-by: monkey <golang@88.com>
This commit is contained in:
parent
0b709c7773
commit
806266524b
13
README.md
13
README.md
|
@ -53,18 +53,19 @@ module:
|
||||||
go mod init github.com/my/repo
|
go mod init github.com/my/repo
|
||||||
```
|
```
|
||||||
|
|
||||||
If you are using **Redis 6**, install go-redis/**v8**:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
go get github.com/go-redis/redis/v8
|
|
||||||
```
|
|
||||||
|
|
||||||
If you are using **Redis 7**, install go-redis/**v9**:
|
If you are using **Redis 7**, install go-redis/**v9**:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
go get github.com/go-redis/redis/v9
|
go get github.com/go-redis/redis/v9
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You can also use the stable version go-redis/**v8** (v8 does not support redis 7):
|
||||||
|
|
||||||
|
```shell
|
||||||
|
go get github.com/go-redis/redis/v8
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Quickstart
|
## Quickstart
|
||||||
|
|
||||||
```go
|
```go
|
||||||
|
|
Loading…
Reference in New Issue