|
1 | 1 | # Redis client for Go |
2 | 2 |
|
3 | | - |
4 | | -[](https://pkg.go.dev/github.com/go-redis/redis/v8?tab=doc) |
5 | | -[](https://redis.uptrace.dev/) |
6 | | - |
7 | | -go-redis is brought to you by :star: [**uptrace/uptrace**](https://github.com/uptrace/uptrace). |
8 | | -Uptrace is an open source and blazingly fast **distributed tracing** backend powered by |
9 | | -OpenTelemetry and ClickHouse. Give it a star as well! |
| 3 | +This is modified version of go-redis by spiderman team in grab. |
| 4 | +This is developed based by the Go-Redis V8/V8.11.5 |
10 | 5 |
|
11 | 6 | ## Resources |
12 | 7 |
|
13 | | -- [Discussions](https://github.com/go-redis/redis/discussions) |
14 | | -- [Documentation](https://redis.uptrace.dev) |
15 | | -- [Reference](https://pkg.go.dev/github.com/go-redis/redis/v8?tab=doc) |
16 | | -- [Examples](https://pkg.go.dev/github.com/go-redis/redis/v8?tab=doc#pkg-examples) |
17 | | -- [RealWorld example app](https://github.com/uptrace/go-treemux-realworld-example-app) |
| 8 | +- [Documentation](https://godoc.org/github.com/go-redis/redis) |
| 9 | +- [Design](https://wiki.grab.com/display/DBOps/%5BDesign%5D+Redis+connector) |
18 | 10 |
|
19 | 11 | Other projects you may like: |
20 | 12 |
|
21 | | -- [Bun](https://bun.uptrace.dev) - fast and simple SQL client for PostgreSQL, MySQL, and SQLite. |
22 | | -- [BunRouter](https://bunrouter.uptrace.dev/) - fast and flexible HTTP router for Go. |
23 | | - |
24 | | -## Ecosystem |
25 | | - |
26 | | -- [Redis Mock](https://github.com/go-redis/redismock) |
27 | | -- [Distributed Locks](https://github.com/bsm/redislock) |
28 | | -- [Redis Cache](https://github.com/go-redis/cache) |
29 | | -- [Rate limiting](https://github.com/go-redis/redis_rate) |
| 13 | +- [DCC](https://wiki.grab.com/pages/viewpage.action?pageId=399488531) - new redis library in grab, wrapped with this forked go-redis |
30 | 14 |
|
31 | 15 | ## Features |
32 | | - |
33 | | -- Redis 3 commands except QUIT, MONITOR, and SYNC. |
34 | | -- Automatic connection pooling with |
35 | | - [circuit breaker](https://en.wikipedia.org/wiki/Circuit_breaker_design_pattern) support. |
36 | | -- [Pub/Sub](https://pkg.go.dev/github.com/go-redis/redis/v8?tab=doc#PubSub). |
37 | | -- [Transactions](https://pkg.go.dev/github.com/go-redis/redis/v8?tab=doc#example-Client-TxPipeline). |
38 | | -- [Pipeline](https://pkg.go.dev/github.com/go-redis/redis/v8?tab=doc#example-Client.Pipeline) and |
39 | | - [TxPipeline](https://pkg.go.dev/github.com/go-redis/redis/v8?tab=doc#example-Client.TxPipeline). |
40 | | -- [Scripting](https://pkg.go.dev/github.com/go-redis/redis/v8?tab=doc#Script). |
41 | | -- [Timeouts](https://pkg.go.dev/github.com/go-redis/redis/v8?tab=doc#Options). |
42 | | -- [Redis Sentinel](https://pkg.go.dev/github.com/go-redis/redis/v8?tab=doc#NewFailoverClient). |
43 | | -- [Redis Cluster](https://pkg.go.dev/github.com/go-redis/redis/v8?tab=doc#NewClusterClient). |
44 | | -- [Cluster of Redis Servers](https://pkg.go.dev/github.com/go-redis/redis/v8?tab=doc#example-NewClusterClient-ManualSetup) |
45 | | - without using cluster mode and Redis Sentinel. |
46 | | -- [Ring](https://pkg.go.dev/github.com/go-redis/redis/v8?tab=doc#NewRing). |
47 | | -- [Instrumentation](https://pkg.go.dev/github.com/go-redis/redis/v8?tab=doc#example-package-Instrumentation). |
48 | | - |
49 | | -## Installation |
50 | | - |
51 | | -go-redis supports 2 last Go versions and requires a Go version with |
52 | | -[modules](https://github.com/golang/go/wiki/Modules) support. So make sure to initialize a Go |
53 | | -module: |
54 | | - |
55 | | -```shell |
56 | | -go mod init github.com/my/repo |
57 | | -``` |
58 | | - |
59 | | -And then install go-redis/v8 (note _v8_ in the import; omitting it is a popular mistake): |
60 | | - |
61 | | -```shell |
62 | | -go get github.com/go-redis/redis/v8 |
63 | | -``` |
| 16 | +- support client reload the essiential configurations, especially dinamiclly change the poolsize. |
| 17 | +- support per node limiter |
64 | 18 |
|
65 | 19 | ## Quickstart |
66 | 20 |
|
67 | 21 | ```go |
68 | 22 | import ( |
69 | 23 | "context" |
70 | | - "github.com/go-redis/redis/v8" |
| 24 | + "gitlab.myteksi.net/dbops/Redis/v8" |
71 | 25 | "fmt" |
72 | 26 | ) |
73 | 27 |
|
@@ -166,10 +120,3 @@ Lastly, run: |
166 | 120 | go test |
167 | 121 | ``` |
168 | 122 |
|
169 | | -## Contributors |
170 | | - |
171 | | -Thanks to all the people who already contributed! |
172 | | - |
173 | | -<a href="https://github.com/go-redis/redis/graphs/contributors"> |
174 | | - <img src="https://contributors-img.web.app/image?repo=go-redis/redis" /> |
175 | | -</a> |
0 commit comments