pairs ...interface{}
here
func (c *cmdable) MSet(pairs ...interface{}) *StatusCmd {
args := make([]interface{}, 1, 1+len(pairs))
args[0] = "mset"
args = appendArgs(args, pairs)
cmd := NewStatusCmd(args...)
c.process(cmd)
return cmd
}
现在,我有了
keys []string
映射到
values []int64
在Redis缓存中设置。如何将它们转换为接口片段并将它们传递给
MSet