Skip to content

Commit 20322ac

Browse files
authored
Merge pull request #1720 from leizihui/support-mapstrstr
hmset support map[string]string
2 parents d67e291 + a8a196f commit 20322ac

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

commands.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ func appendArg(dst []interface{}, arg interface{}) []interface{} {
6767
dst = append(dst, k, v)
6868
}
6969
return dst
70+
case map[string]string:
71+
for k, v := range arg {
72+
dst = append(dst, k, v)
73+
}
74+
return dst
7075
default:
7176
return append(dst, arg)
7277
}

0 commit comments

Comments
 (0)