File tree Expand file tree Collapse file tree 1 file changed +22
-5
lines changed Expand file tree Collapse file tree 1 file changed +22
-5
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,10 @@ Confirm that you are using redis.Client the version is github.com/go-redis/redis
1010go get github.com /go -redis/redismock/v8
1111```
1212
13- ## Example
14-
15- More examples: https://github.com/go-redis/redismock/blob/v8/example/example.go
13+ ## Quick Start
1614
15+ RedisClient
1716``` go
18-
1917var ctx = context.TODO ()
2018
2119func NewsInfoForCache (redisDB *redis .Client , newsID int ) (info string , err error ) {
@@ -49,4 +47,23 @@ func TestNewsInfoForCache(t *testing.T) {
4947 t.Error (err)
5048 }
5149}
52- ```
50+ ```
51+
52+ RedisCluster
53+ ``` go
54+ clusterClient , clusterMock := redismock.NewClusterMock ()
55+ ```
56+
57+ ## Unsupported Command
58+
59+ RedisClient:
60+
61+ - ` Subscribe ` / ` PSubscribe `
62+
63+
64+ RedisCluster
65+
66+ - ` Subscribe ` / ` PSubscribe `
67+ - ` Pipeline ` / ` TxPipeline `
68+ - ` Watch `
69+ - ` DBSize `
You can’t perform that action at this time.
0 commit comments