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

Function writeCmd

command.go:278–280  ·  view source on GitHub ↗
(wr *proto.Writer, cmd Cmder)

Source from the content-addressed store, hash-verified

276}
277
278func writeCmd(wr *proto.Writer, cmd Cmder) error {
279 return wr.WriteArgs(cmd.Args())
280}
281
282// cmdFirstKeyPosWithInfo returns the first key position in a command's args (0 if none).
283// Uses CommandInfo.FirstKeyPos when available (via cache peek, no network call), falling

Callers 3

_processMethod · 0.85
writeCmdMethod · 0.85
writeCmdsFunction · 0.85

Calls 2

WriteArgsMethod · 0.80
ArgsMethod · 0.65

Tested by

no test coverage detected