From 13b6cb38917e4ab45791a957a49d3ed70cf6192c Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Sun, 12 Jan 2020 12:03:21 +0200 Subject: [PATCH] Add note on HMGet --- commands.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commands.go b/commands.go index a41a9692..258bad0e 100644 --- a/commands.go +++ b/commands.go @@ -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"