mirror of https://github.com/go-redis/redis.git
Explain more about SetVal
This commit is contained in:
parent
a7d711aff8
commit
5bf18bfb17
|
@ -193,7 +193,8 @@ redis.NewClient(&redis.Options{
|
|||
UnstableResp3: true,
|
||||
})
|
||||
```
|
||||
**Note:** When using unstable RESP3 in the RediSearch module, use RawResult() or RawVal() to handle responses:
|
||||
**Note:** When UnstableResp3 mode is enabled, it's necessary to use RawResult() and RawVal() to retrieve a raw data.
|
||||
Since, raw response is the only option for unstable search commands Val() and Result() calls wouldn't have any affect on them:
|
||||
|
||||
```go
|
||||
res1, err := client.FTSearchWithArgs(ctx, "txt", "foo bar", &redis.FTSearchOptions{}).RawResult()
|
||||
|
|
Loading…
Reference in New Issue