Skip to content

Commit

Permalink
Add note on HMGet
Browse files Browse the repository at this point in the history
  • Loading branch information
vmihailenco committed Jan 12, 2020
1 parent 984a639 commit 13b6cb3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -969,6 +969,8 @@ func (c cmdable) HLen(key string) *IntCmd {
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 {
args := make([]interface{}, 2+len(fields))
args[0] = "hmget"
Expand Down

0 comments on commit 13b6cb3

Please sign in to comment.