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

Function writeCmds

command.go:269–276  ·  view source on GitHub ↗
(wr *proto.Writer, cmds []Cmder)

Source from the content-addressed store, hash-verified

267}
268
269func writeCmds(wr *proto.Writer, cmds []Cmder) error {
270 for _, cmd := range cmds {
271 if err := writeCmd(wr, cmd); err != nil {
272 return err
273 }
274 }
275 return nil
276}
277
278func writeCmd(wr *proto.Writer, cmd Cmder) error {
279 return wr.WriteArgs(cmd.Args())

Callers 4

pipelineProcessCmdsMethod · 0.85
txPipelineProcessCmdsMethod · 0.85

Calls 1

writeCmdFunction · 0.85

Tested by

no test coverage detected