Merge pull request #2360 from monkey92t/compatible

docs: updated "Installation" description in README.md
This commit is contained in:
Vladimir Mihailenco 2023-01-23 08:37:40 +02:00 committed by GitHub
commit 5ca5740d51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 6 deletions

View File

@ -53,18 +53,19 @@ module:
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**:
```shell
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
```go