mirror of https://github.com/go-redis/redis.git
Merge pull request #1720 from leizihui/support-mapstrstr
hmset support map[string]string
This commit is contained in:
commit
20322ac8ed
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue