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

Function NewIntCmd

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

Source from the content-addressed store, hash-verified

1123var _ Cmder = (*IntCmd)(nil)
1124
1125func NewIntCmd(ctx context.Context, args ...interface{}) *IntCmd {
1126 return &IntCmd{
1127 baseCmd: baseCmd{
1128 ctx: ctx,
1129 args: args,
1130 cmdType: CmdTypeInt,
1131 },
1132 }
1133}
1134
1135func (cmd *IntCmd) SetVal(val int64) {
1136 cmd.val = val

Callers 15

DBSizeMethod · 0.85
GetBitMethod · 0.85
SetBitMethod · 0.85
BitCountMethod · 0.85
bitOpMethod · 0.85
BitPosMethod · 0.85
BitPosSpanMethod · 0.85
ZAddArgsMethod · 0.85
ZCardMethod · 0.85
ZCountMethod · 0.85
ZLexCountMethod · 0.85
ZInterStoreMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected