From a8a196f328ae605de91d795d168535d369ba5fde Mon Sep 17 00:00:00 2001 From: leizihui Date: Fri, 9 Apr 2021 11:27:11 +0800 Subject: [PATCH] hmset support map[string]string --- commands.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/commands.go b/commands.go index 6f69ff03..5b2f4c6a 100644 --- a/commands.go +++ b/commands.go @@ -67,6 +67,11 @@ func appendArg(dst []interface{}, arg interface{}) []interface{} { dst = append(dst, k, v) } return dst + case map[string]string: + for k, v := range arg { + dst = append(dst, k, v) + } + return dst default: return append(dst, arg) }