mirror of
https://github.com/redis/go-redis.git
synced 2025-07-23 21:01:00 +03:00
Use string val in StringCmd.
This commit is contained in:
@ -6,11 +6,13 @@ import (
|
||||
"strconv"
|
||||
)
|
||||
|
||||
const bufferSize = 4096
|
||||
|
||||
type WriteBuffer struct{ b []byte }
|
||||
|
||||
func NewWriteBuffer() *WriteBuffer {
|
||||
return &WriteBuffer{
|
||||
b: make([]byte, 0, defaultBufSize),
|
||||
b: make([]byte, 0, bufferSize),
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user