Skip to content

Commit 13b6cb3

Browse files
committed
Add note on HMGet
1 parent 984a639 commit 13b6cb3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

commands.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -969,6 +969,8 @@ func (c cmdable) HLen(key string) *IntCmd {
969969
return cmd
970970
}
971971

972+
// HMGet returns the values for the specified fields in the hash stored at key.
973+
// It returns an interface{} to distinguish between empty string and nil value.
972974
func (c cmdable) HMGet(key string, fields ...string) *SliceCmd {
973975
args := make([]interface{}, 2+len(fields))
974976
args[0] = "hmget"

0 commit comments

Comments
 (0)