()
| 782 | } |
| 783 | |
| 784 | func (c *ModuleLoadexConfig) toArgs() []interface{} { |
| 785 | args := make([]interface{}, 3, 3+len(c.Conf)*3+len(c.Args)*2) |
| 786 | args[0] = "MODULE" |
| 787 | args[1] = "LOADEX" |
| 788 | args[2] = c.Path |
| 789 | for k, v := range c.Conf { |
| 790 | args = append(args, "CONFIG", k, v) |
| 791 | } |
| 792 | for _, arg := range c.Args { |
| 793 | args = append(args, "ARGS", arg) |
| 794 | } |
| 795 | return args |
| 796 | } |
| 797 | |
| 798 | // ModuleLoadex Redis `MODULE LOADEX path [CONFIG name value [CONFIG name value ...]] [ARGS args [args ...]]` command. |
| 799 | func (c cmdable) ModuleLoadex(ctx context.Context, conf *ModuleLoadexConfig) *StringCmd { |
no outgoing calls