hmset support map[string]string

This commit is contained in:
leizihui 2021-04-09 11:27:11 +08:00
parent d67e2911b9
commit a8a196f328
1 changed files with 5 additions and 0 deletions

View File

@ -67,6 +67,11 @@ func appendArg(dst []interface{}, arg interface{}) []interface{} {
dst = append(dst, k, v) dst = append(dst, k, v)
} }
return dst return dst
case map[string]string:
for k, v := range arg {
dst = append(dst, k, v)
}
return dst
default: default:
return append(dst, arg) return append(dst, arg)
} }