mirror of
https://github.com/redis/go-redis.git
synced 2025-04-19 07:22:17 +03:00
Add note on HMGet
This commit is contained in:
parent
984a6395c9
commit
13b6cb3891
@ -969,6 +969,8 @@ func (c cmdable) HLen(key string) *IntCmd {
|
|||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// HMGet returns the values for the specified fields in the hash stored at key.
|
||||||
|
// It returns an interface{} to distinguish between empty string and nil value.
|
||||||
func (c cmdable) HMGet(key string, fields ...string) *SliceCmd {
|
func (c cmdable) HMGet(key string, fields ...string) *SliceCmd {
|
||||||
args := make([]interface{}, 2+len(fields))
|
args := make([]interface{}, 2+len(fields))
|
||||||
args[0] = "hmget"
|
args[0] = "hmget"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user