1
1
# Redis client for Go
2
2
3
- [ ![ build workflow] ( https://github.com/go-redis/redis/ actions/workflows/build.yml/badge.svg )] ( https://github.com/go- redis/redis/actions )
4
- [ ![ PkgGoDev] ( https://pkg.go.dev/badge/github.com/go-redis/redis/v8 )] ( https://pkg.go.dev/github.com/go-redis/redis/v8 ?tab=doc )
3
+ [ ![ build workflow] ( https://github.com/redis/ go-redis/actions/workflows/build.yml/badge.svg )] ( https://github.com/redis/go- redis/actions )
4
+ [ ![ PkgGoDev] ( https://pkg.go.dev/badge/github.com/redis/ go-redis/v9 )] ( https://pkg.go.dev/github.com/redis/ go-redis/v9 ?tab=doc )
5
5
[ ![ Documentation] ( https://img.shields.io/badge/redis-documentation-informational )] ( https://redis.uptrace.dev/ )
6
6
[ ![ Chat] ( https://discordapp.com/api/guilds/752070105847955518/widget.png )] ( https://discord.gg/rWtp5Aj )
7
7
16
16
## Resources
17
17
18
18
- [ Documentation] ( https://redis.uptrace.dev )
19
- - [ Discussions] ( https://github.com/go- redis/redis/discussions )
19
+ - [ Discussions] ( https://github.com/redis/go- redis/discussions )
20
20
- [ Chat] ( https://discord.gg/rWtp5Aj )
21
- - [ Reference] ( https://pkg.go.dev/github.com/go- redis/redis/v9 )
22
- - [ Examples] ( https://pkg.go.dev/github.com/go- redis/redis/v9#pkg-examples )
21
+ - [ Reference] ( https://pkg.go.dev/github.com/redis/go- redis/v9 )
22
+ - [ Examples] ( https://pkg.go.dev/github.com/redis/go- redis/v9#pkg-examples )
23
23
24
24
## Ecosystem
25
25
26
26
- [ Redis Mock] ( https://github.com/go-redis/redismock )
27
27
- [ Distributed Locks] ( https://github.com/bsm/redislock )
28
28
- [ Redis Cache] ( https://github.com/go-redis/cache )
29
- - [ Rate limiting] ( https://github.com/go- redis/redis_rate )
29
+ - [ Rate limiting] ( https://github.com/redis/go- redis_rate )
30
30
31
31
This client also works with [ Kvrocks] ( https://github.com/apache/incubator-kvrocks ) , a distributed
32
32
key value NoSQL database that uses RocksDB as storage engine and is compatible with Redis protocol.
@@ -53,25 +53,18 @@ module:
53
53
go mod init github.com/my/repo
54
54
```
55
55
56
- If you are using ** Redis 7 ** , install go-redis/** v9** :
56
+ Then install go-redis/** v9** :
57
57
58
58
``` shell
59
- go get github.com/go- redis/redis/v9
59
+ go get github.com/redis/go- redis/v9
60
60
```
61
61
62
- You can also use the stable version go-redis/** v8** (v8 does not support redis 7):
63
-
64
- ``` shell
65
- go get github.com/go-redis/redis/v8
66
- ```
67
-
68
-
69
62
## Quickstart
70
63
71
64
``` go
72
65
import (
73
66
" context"
74
- " github.com/go-redis/redis/v8 "
67
+ " github.com/redis/ go-redis/v9 "
75
68
" fmt"
76
69
)
77
70
@@ -181,6 +174,6 @@ go test
181
174
182
175
Thanks to all the people who already contributed!
183
176
184
- <a href =" https://github.com/go- redis/redis/graphs/contributors " >
185
- <img src =" https://contributors-img.web.app/image?repo=go- redis/redis " />
177
+ <a href =" https://github.com/redis/go- redis/graphs/contributors " >
178
+ <img src =" https://contributors-img.web.app/image?repo=redis/go- redis " />
186
179
</a >
0 commit comments