1717- [ Chat] ( https://discord.gg/rWtp5Aj )
1818- [ Reference] ( https://pkg.go.dev/github.com/go-redis/redis/v8?tab=doc )
1919- [ 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 )
2120
2221## Ecosystem
2322
3029
3130- Redis 3 commands except QUIT, MONITOR, and SYNC.
3231- 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 ) .
4639
4740## Installation
4841
@@ -143,7 +136,7 @@ go-redis will start a redis-server and run the test cases.
143136
144137The paths of redis-server bin file and redis config file are defined in ` main_test.go ` :
145138
146- ```
139+ ``` go
147140var (
148141 redisServerBin, _ = filepath.Abs (filepath.Join (" testdata" , " redis" , " src" , " redis-server" ))
149142 redisServerConf, _ = filepath.Abs (filepath.Join (" testdata" , " redis" , " redis.conf" ))
@@ -153,14 +146,14 @@ var (
153146For local testing, you can change the variables to refer to your local files, or create a soft link
154147to the corresponding folder for redis-server and copy the config file to ` testdata/redis/ ` :
155148
156- ```
149+ ``` shell
157150ln -s /usr/bin/redis-server ./go-redis/testdata/redis/src
158151cp ./go-redis/testdata/redis.conf ./go-redis/testdata/redis/
159152```
160153
161154Lastly, run:
162155
163- ```
156+ ``` shell
164157go test
165158```
166159
0 commit comments