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

Function NewStringCmd

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

Source from the content-addressed store, hash-verified

1588var _ Cmder = (*StringCmd)(nil)
1589
1590func NewStringCmd(ctx context.Context, args ...interface{}) *StringCmd {
1591 return &StringCmd{
1592 baseCmd: baseCmd{
1593 ctx: ctx,
1594 args: args,
1595 cmdType: CmdTypeString,
1596 },
1597 }
1598}
1599
1600func (cmd *StringCmd) SetVal(val string) {
1601 cmd.val = val

Callers 15

ScriptLoadMethod · 0.85
ACLDryRunMethod · 0.85
ACLGenPassMethod · 0.85
ACLWhoAmIMethod · 0.85
ScriptLoadMethod · 0.85
ARGetMethod · 0.85
AROpSumMethod · 0.85
AROpMinMethod · 0.85
AROpMaxMethod · 0.85
ClientGetNameMethod · 0.85
EchoMethod · 0.85
ClientListMethod · 0.85

Calls

no outgoing calls

Tested by 1

ScriptLoadMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…