Add note on HMGet

This commit is contained in:
Vladimir Mihailenco 2020-01-12 12:03:21 +02:00
parent 984a6395c9
commit 13b6cb3891
1 changed files with 2 additions and 0 deletions

View File

@ -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"