mirror of
https://github.com/redis/go-redis.git
synced 2025-08-06 01:35:48 +03:00
hmset support map[string]string
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user