mirror of
https://github.com/redis/go-redis.git
synced 2025-09-05 20:24:00 +03:00
fix(options): Add buffer sizes to failover. Update README (#3468)
* fix(options): Add buffer sizes to failover. Update README * fix(spellcheck): add KiB in wordlist * fix(comment): fix defaul value in comment * fixes #3465
This commit is contained in:
4
ring.go
4
ring.go
@@ -128,14 +128,14 @@ type RingOptions struct {
|
||||
// Larger buffers can improve performance for commands that return large responses.
|
||||
// Smaller buffers can improve memory usage for larger pools.
|
||||
//
|
||||
// default: 0.5MiB (524288 bytes)
|
||||
// default: 256KiB (262144 bytes)
|
||||
ReadBufferSize int
|
||||
|
||||
// WriteBufferSize is the size of the bufio.Writer buffer for each connection.
|
||||
// Larger buffers can improve performance for large pipelines and commands with many arguments.
|
||||
// Smaller buffers can improve memory usage for larger pools.
|
||||
//
|
||||
// default: 0.5MiB (524288 bytes)
|
||||
// default: 256KiB (262144 bytes)
|
||||
WriteBufferSize int
|
||||
|
||||
TLSConfig *tls.Config
|
||||
|
Reference in New Issue
Block a user