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

Method DoRawWriteTo

commands.go:461–465  ·  view source on GitHub ↗

DoRawWriteTo executes a command and streams raw RESP bytes directly to w without intermediate allocations.

(ctx context.Context, w io.Writer, args ...interface{})

Source from the content-addressed store, hash-verified

459
460// DoRawWriteTo executes a command and streams raw RESP bytes directly to w without intermediate allocations.
461func (c cmdable) DoRawWriteTo(ctx context.Context, w io.Writer, args ...interface{}) *RawWriteToCmd {
462 cmd := NewRawWriteToCmd(ctx, w, args...)
463 _ = c(ctx, cmd)
464 return cmd
465}
466
467// Quit closes the connection.
468//

Callers 1

command_test.goFile · 0.80

Calls 1

NewRawWriteToCmdFunction · 0.85

Tested by

no test coverage detected