MCPcopy
hub / github.com/CodisLabs/codis / EncodeMultiBulk

Method EncodeMultiBulk

pkg/proxy/redis/encoder.go:78–88  ·  view source on GitHub ↗
(multi []*Resp, flush bool)

Source from the content-addressed store, hash-verified

76}
77
78func (e *Encoder) EncodeMultiBulk(multi []*Resp, flush bool) error {
79 if e.Err != nil {
80 return errors.Trace(ErrFailedEncoder)
81 }
82 if err := e.encodeMultiBulk(multi); err != nil {
83 e.Err = err
84 } else if flush {
85 e.Err = errors.Trace(e.bw.Flush())
86 }
87 return e.Err
88}
89
90func (e *Encoder) Flush() error {
91 if e.Err != nil {

Callers 4

verifyAuthMethod · 0.45
selectDatabaseMethod · 0.45
loopWriterMethod · 0.45
benchmarkEncodeFunction · 0.45

Calls 2

encodeMultiBulkMethod · 0.95
FlushMethod · 0.45

Tested by 1

benchmarkEncodeFunction · 0.36