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

Method Flush

pkg/proxy/redis/encoder.go:90–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88}
89
90func (e *Encoder) Flush() error {
91 if e.Err != nil {
92 return errors.Trace(ErrFailedEncoder)
93 }
94 if err := e.bw.Flush(); err != nil {
95 e.Err = errors.Trace(err)
96 }
97 return e.Err
98}
99
100func Encode(w io.Writer, r *Resp) error {
101 return NewEncoder(w).Encode(r, true)

Callers 5

loopWriterMethod · 0.45
loopWriterMethod · 0.45
EncodeMethod · 0.45
EncodeMultiBulkMethod · 0.45
benchmarkEncodeFunction · 0.45

Calls

no outgoing calls

Tested by 1

benchmarkEncodeFunction · 0.36