MCPcopy
hub / github.com/redis/go-redis / toArgs

Method toArgs

commands.go:784–796  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

782}
783
784func (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.
799func (c cmdable) ModuleLoadex(ctx context.Context, conf *ModuleLoadexConfig) *StringCmd {

Callers 2

ToArgsMethod · 0.95
ModuleLoadexMethod · 0.80

Calls

no outgoing calls

Tested by 1

ToArgsMethod · 0.76