Explain more about SetVal

This commit is contained in:
ofekshenawa 2024-11-13 01:38:47 +02:00
parent a7d711aff8
commit 5bf18bfb17
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()