1
0
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:
Vladimir Mihailenco
2016-11-20 09:50:49 +02:00
parent c985686167
commit a20665f042
5 changed files with 36 additions and 44 deletions

View File

@ -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),
}
}