Skip to content

Commit e5eb868

Browse files
Merge branch 'master' into ce/8.2.1-int
2 parents 042f7cb + 8336c44 commit e5eb868

File tree

7 files changed

+31
-8
lines changed

7 files changed

+31
-8
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
go-version: ${{ matrix.go-version }}
3333

3434
- name: Checkout code
35-
uses: actions/checkout@v4
35+
uses: actions/checkout@v5
3636

3737
- name: Setup Test environment
3838
env:
@@ -84,7 +84,7 @@ jobs:
8484

8585
steps:
8686
- name: Checkout code
87-
uses: actions/checkout@v4
87+
uses: actions/checkout@v5
8888

8989
- name: Run tests
9090
uses: ./.github/actions/run-tests

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636
steps:
3737
- name: Checkout repository
38-
uses: actions/checkout@v4
38+
uses: actions/checkout@v5
3939

4040
# Initializes the CodeQL tools for scanning.
4141
- name: Initialize CodeQL

.github/workflows/doctests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
go-version: ${{ matrix.go-version }}
3737

3838
- name: Checkout code
39-
uses: actions/checkout@v4
39+
uses: actions/checkout@v5
4040

4141
- name: Test doc examples
4242
working-directory: ./doctests

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
name: lint
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@v5
2424
- name: golangci-lint
2525
uses: golangci/[email protected]
2626
with:

.github/workflows/spellcheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- name: Checkout
9-
uses: actions/checkout@v4
9+
uses: actions/checkout@v5
1010
- name: Check Spelling
1111
uses: rojopolis/[email protected]
1212
with:

.github/workflows/test-redis-enterprise.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020

2121
steps:
2222
- name: Checkout code
23-
uses: actions/checkout@v4
23+
uses: actions/checkout@v5
2424

2525
- name: Clone Redis EE docker repository
26-
uses: actions/checkout@v4
26+
uses: actions/checkout@v5
2727
with:
2828
repository: RedisLabs/redis-ee-docker
2929
path: redis-ee

universal.go

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,20 @@ type UniversalOptions struct {
6161
WriteTimeout time.Duration
6262
ContextTimeoutEnabled bool
6363

64+
// ReadBufferSize is the size of the bufio.Reader buffer for each connection.
65+
// Larger buffers can improve performance for commands that return large responses.
66+
// Smaller buffers can improve memory usage for larger pools.
67+
//
68+
// default: 256KiB (262144 bytes)
69+
ReadBufferSize int
70+
71+
// WriteBufferSize is the size of the bufio.Writer buffer for each connection.
72+
// Larger buffers can improve performance for large pipelines and commands with many arguments.
73+
// Smaller buffers can improve memory usage for larger pools.
74+
//
75+
// default: 256KiB (262144 bytes)
76+
WriteBufferSize int
77+
6478
// PoolFIFO uses FIFO mode for each node connection pool GET/PUT (default LIFO).
6579
PoolFIFO bool
6680

@@ -143,6 +157,9 @@ func (o *UniversalOptions) Cluster() *ClusterOptions {
143157
WriteTimeout: o.WriteTimeout,
144158
ContextTimeoutEnabled: o.ContextTimeoutEnabled,
145159

160+
ReadBufferSize: o.ReadBufferSize,
161+
WriteBufferSize: o.WriteBufferSize,
162+
146163
PoolFIFO: o.PoolFIFO,
147164

148165
PoolSize: o.PoolSize,
@@ -200,6 +217,9 @@ func (o *UniversalOptions) Failover() *FailoverOptions {
200217
WriteTimeout: o.WriteTimeout,
201218
ContextTimeoutEnabled: o.ContextTimeoutEnabled,
202219

220+
ReadBufferSize: o.ReadBufferSize,
221+
WriteBufferSize: o.WriteBufferSize,
222+
203223
PoolFIFO: o.PoolFIFO,
204224
PoolSize: o.PoolSize,
205225
PoolTimeout: o.PoolTimeout,
@@ -250,6 +270,9 @@ func (o *UniversalOptions) Simple() *Options {
250270
WriteTimeout: o.WriteTimeout,
251271
ContextTimeoutEnabled: o.ContextTimeoutEnabled,
252272

273+
ReadBufferSize: o.ReadBufferSize,
274+
WriteBufferSize: o.WriteBufferSize,
275+
253276
PoolFIFO: o.PoolFIFO,
254277
PoolSize: o.PoolSize,
255278
PoolTimeout: o.PoolTimeout,

0 commit comments

Comments
 (0)