1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-29 17:41:15 +03:00

feat: add ParseFailoverURL (#3362)

* add ParseFailoverURL for FailoverOptions
* fix 2 warning

Co-authored-by: Nedyalko Dyakov <1547186+ndyakov@users.noreply.github.com>
This commit is contained in:
fukua95
2025-05-15 19:53:40 +08:00
committed by GitHub
parent 42c32846e6
commit 6c6dddcf7c
3 changed files with 411 additions and 2 deletions

View File

@ -359,7 +359,7 @@ func ExampleMapStringStringCmd_Scan() {
// Get the map. The same approach works for HmGet().
res := rdb.HGetAll(ctx, "map")
if res.Err() != nil {
panic(err)
panic(res.Err())
}
type data struct {
@ -392,7 +392,7 @@ func ExampleSliceCmd_Scan() {
res := rdb.MGet(ctx, "name", "count", "empty", "correct")
if res.Err() != nil {
panic(err)
panic(res.Err())
}
type data struct {