mirror of
https://github.com/redis/go-redis.git
synced 2025-07-29 17:41:15 +03:00
Bench bigget values
This commit is contained in:
@ -81,10 +81,11 @@ func (cn *Conn) EnableConcurrentReadWrite() {
|
||||
}
|
||||
|
||||
func (cn *Conn) PrepareWriteBuffer() *proto.WriteBuffer {
|
||||
if !cn.concurrentReadWrite {
|
||||
if cn.concurrentReadWrite {
|
||||
cn.wb.Reset()
|
||||
} else {
|
||||
cn.wb.ResetBuffer(cn.Rd.Buffer())
|
||||
}
|
||||
cn.wb.Reset()
|
||||
return cn.wb
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user