Compare commits

..

3 Commits

Author SHA1 Message Date
ofekshenawa 08e67bca3c
Merge e9598a8665 into 80c9f5bb77 2024-11-12 23:39:22 +00:00
ofekshenawa e9598a8665
Merge branch 'master' into add-unstableresp3-to-docs 2024-11-13 01:39:20 +02:00
ofekshenawa 5bf18bfb17 Explain more about SetVal 2024-11-13 01:38:47 +02:00
1 changed files with 2 additions and 1 deletions

View File

@ -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()