17
17
- [ Chat] ( https://discord.gg/rWtp5Aj )
18
18
- [ Reference] ( https://pkg.go.dev/github.com/go-redis/redis/v8?tab=doc )
19
19
- [ Examples] ( https://pkg.go.dev/github.com/go-redis/redis/v8?tab=doc#pkg-examples )
20
- - [ RealWorld example app] ( https://github.com/uptrace/go-treemux-realworld-example-app )
21
20
22
21
## Ecosystem
23
22
30
29
31
30
- Redis 3 commands except QUIT, MONITOR, and SYNC.
32
31
- Automatic connection pooling with
33
- [ circuit breaker] ( https://en.wikipedia.org/wiki/Circuit_breaker_design_pattern ) support.
34
- - [ Pub/Sub] ( https://pkg.go.dev/github.com/go-redis/redis/v8?tab=doc#PubSub ) .
35
- - [ Transactions] ( https://pkg.go.dev/github.com/go-redis/redis/v8?tab=doc#example-Client-TxPipeline ) .
36
- - [ Pipeline] ( https://pkg.go.dev/github.com/go-redis/redis/v8?tab=doc#example-Client.Pipeline ) and
37
- [ TxPipeline] ( https://pkg.go.dev/github.com/go-redis/redis/v8?tab=doc#example-Client.TxPipeline ) .
38
- - [ Scripting] ( https://pkg.go.dev/github.com/go-redis/redis/v8?tab=doc#Script ) .
39
- - [ Timeouts] ( https://pkg.go.dev/github.com/go-redis/redis/v8?tab=doc#Options ) .
40
- - [ Redis Sentinel] ( https://pkg.go.dev/github.com/go-redis/redis/v8?tab=doc#NewFailoverClient ) .
41
- - [ Redis Cluster] ( https://pkg.go.dev/github.com/go-redis/redis/v8?tab=doc#NewClusterClient ) .
42
- - [ Cluster of Redis Servers] ( https://pkg.go.dev/github.com/go-redis/redis/v8?tab=doc#example-NewClusterClient-ManualSetup )
43
- without using cluster mode and Redis Sentinel.
44
- - [ Ring] ( https://pkg.go.dev/github.com/go-redis/redis/v8?tab=doc#NewRing ) .
45
- - [ Instrumentation] ( https://pkg.go.dev/github.com/go-redis/redis/v8?tab=doc#example-package-Instrumentation ) .
32
+ - [ Pub/Sub] ( https://redis.uptrace.dev/guide/go-redis-pubsub.html ) .
33
+ - [ Pipelines and transactions] ( https://redis.uptrace.dev/guide/go-redis-pipelines.html ) .
34
+ - [ Scripting] ( https://redis.uptrace.dev/guide/lua-scripting.html ) .
35
+ - [ Redis Sentinel] ( https://redis.uptrace.dev/guide/go-redis-sentinel.html ) .
36
+ - [ Redis Cluster] ( https://redis.uptrace.dev/guide/go-redis-cluster.html ) .
37
+ - [ Redis Ring] ( https://redis.uptrace.dev/guide/ring.html ) .
38
+ - [ Redis Performance Monitoring] ( https://redis.uptrace.dev/guide/redis-performance-monitoring.html ) .
46
39
47
40
## Installation
48
41
@@ -143,7 +136,7 @@ go-redis will start a redis-server and run the test cases.
143
136
144
137
The paths of redis-server bin file and redis config file are defined in ` main_test.go ` :
145
138
146
- ```
139
+ ``` go
147
140
var (
148
141
redisServerBin, _ = filepath.Abs (filepath.Join (" testdata" , " redis" , " src" , " redis-server" ))
149
142
redisServerConf, _ = filepath.Abs (filepath.Join (" testdata" , " redis" , " redis.conf" ))
@@ -153,14 +146,14 @@ var (
153
146
For local testing, you can change the variables to refer to your local files, or create a soft link
154
147
to the corresponding folder for redis-server and copy the config file to ` testdata/redis/ ` :
155
148
156
- ```
149
+ ``` shell
157
150
ln -s /usr/bin/redis-server ./go-redis/testdata/redis/src
158
151
cp ./go-redis/testdata/redis.conf ./go-redis/testdata/redis/
159
152
```
160
153
161
154
Lastly, run:
162
155
163
- ```
156
+ ``` shell
164
157
go test
165
158
```
166
159
0 commit comments