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

Function NewCmd

command.go:480–488  ·  view source on GitHub ↗
(ctx context.Context, args ...interface{})

Source from the content-addressed store, hash-verified

478}
479
480func NewCmd(ctx context.Context, args ...interface{}) *Cmd {
481 return &Cmd{
482 baseCmd: baseCmd{
483 ctx: ctx,
484 args: args,
485 cmdType: CmdTypeGeneric,
486 },
487 }
488}
489
490func (cmd *Cmd) String() string {
491 return cmdString(cmd, cmd.val)

Callers 15

EvalMethod · 0.85
EvalShaMethod · 0.85
EvalROMethod · 0.85
EvalShaROMethod · 0.85
DoMethod · 0.85
PingMethod · 0.85
ReceiveTimeoutMethod · 0.85
DoMethod · 0.85
processMethod · 0.85
checkMovedErrMethod · 0.85
cmdsMovedMethod · 0.85

Calls

no outgoing calls

Tested by 5

EvalMethod · 0.68
EvalShaMethod · 0.68
EvalROMethod · 0.68
EvalShaROMethod · 0.68