-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why does readMap return an array? #29
Comments
Hi @guybe7, The |
hi @rueian thanks for the quick reply. i guess my question is: if I execute |
You can use c, _ := rueidis.NewClient(rueidis.ClientOption{InitAddress: []string{"127.0.0.1:6377"}})
defer c.Close()
m, _ := c.Do(context.Background(), c.B().Hgetall().Key("key").Build()).AsStrMap()
for key, value := range m {
fmt.Println(key, value)
} Error handling is omitted. |
thanks! |
first of all, I'm extremely new to golang, so sorry in advance if what I'm saying doesn't make much sense
IIUC
readMap
will assignm.values
, which is an array.shouldn't
RedisMessage
have a map member?The text was updated successfully, but these errors were encountered: