Skip to content

Commit 6eab5cb

Browse files
committed
update README
Signed-off-by: monkey <golang@88.com>
1 parent e8df338 commit 6eab5cb

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

README.md

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@ Confirm that you are using redis.Client the version is github.com/go-redis/redis
1010
go 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-
1917
var ctx = context.TODO()
2018

2119
func 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`

0 commit comments

Comments
 (0)