Skip to content

Commit 3251c0c

Browse files
authored
Merge branch 'master' into otel
2 parents 48b08da + 375fa5d commit 3251c0c

39 files changed

+4603
-264
lines changed

.github/actions/run-tests/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ runs:
2525
2626
# Mapping of redis version to redis testing containers
2727
declare -A redis_version_mapping=(
28-
["8.2.x"]="8.2-RC1-pre"
28+
["8.2.x"]="8.2-rc2-pre"
2929
["8.0.x"]="8.0.2"
3030
["7.4.x"]="rs-7.4.0-v5"
3131
["7.2.x"]="rs-7.2.0-v17"

.github/wordlist.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,5 @@ OAuth
7373
Azure
7474
StreamingCredentialsProvider
7575
oauth
76-
entraid
76+
entraid
77+
MiB

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Go
22

33
on:
44
push:
5-
branches: [master, v9, v9.7, v9.8]
5+
branches: [master, v9, v9.7, v9.8, 'ndyakov/*', 'ofekshenawa/*', 'htemelski-redis/*', 'ce/*']
66
pull_request:
7-
branches: [master, v9, v9.7, v9.8]
7+
branches: [master, v9, v9.7, v9.8, 'ndyakov/*', 'ofekshenawa/*', 'htemelski-redis/*', 'ce/*']
88

99
permissions:
1010
contents: read
@@ -44,7 +44,7 @@ jobs:
4444
4545
# Mapping of redis version to redis testing containers
4646
declare -A redis_version_mapping=(
47-
["8.2.x"]="8.2-RC1-pre"
47+
["8.2.x"]="8.2-rc2-pre"
4848
["8.0.x"]="8.0.2"
4949
["7.4.x"]="rs-7.4.0-v5"
5050
)

.github/workflows/stale-issues.yml

Lines changed: 89 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,97 @@
1-
name: "Close stale issues"
1+
name: "Stale Issue Management"
22
on:
33
schedule:
4-
- cron: "0 0 * * *"
4+
# Run daily at midnight UTC
5+
- cron: "0 0 * * *"
6+
workflow_dispatch: # Allow manual triggering
7+
8+
env:
9+
# Default stale policy timeframes
10+
DAYS_BEFORE_STALE: 365
11+
DAYS_BEFORE_CLOSE: 30
12+
13+
# Accelerated timeline for needs-information issues
14+
NEEDS_INFO_DAYS_BEFORE_STALE: 30
15+
NEEDS_INFO_DAYS_BEFORE_CLOSE: 7
516

6-
permissions: {}
717
jobs:
818
stale:
9-
permissions:
10-
issues: write # to close stale issues (actions/stale)
11-
pull-requests: write # to close stale PRs (actions/stale)
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/stale@v9
22+
with:
23+
repo-token: ${{ secrets.GITHUB_TOKEN }}
24+
dry-run: true
25+
26+
# Default stale policy
27+
days-before-stale: ${{ env.DAYS_BEFORE_STALE }}
28+
days-before-close: ${{ env.DAYS_BEFORE_CLOSE }}
29+
30+
# Explicit stale label configuration
31+
stale-issue-label: "stale"
32+
stale-pr-label: "stale"
33+
34+
stale-issue-message: |
35+
This issue has been automatically marked as stale due to inactivity.
36+
It will be closed in 30 days if no further activity occurs.
37+
If you believe this issue is still relevant, please add a comment to keep it open.
38+
39+
close-issue-message: |
40+
This issue has been automatically closed due to inactivity.
41+
If you believe this issue is still relevant, please reopen it or create a new issue with updated information.
42+
43+
# Exclude needs-information issues from this job
44+
exempt-issue-labels: 'no-stale,needs-information'
45+
46+
# Remove stale label when issue/PR becomes active again
47+
remove-stale-when-updated: true
48+
49+
# Apply to pull requests with same timeline
50+
days-before-pr-stale: ${{ env.DAYS_BEFORE_STALE }}
51+
days-before-pr-close: ${{ env.DAYS_BEFORE_CLOSE }}
1252

53+
stale-pr-message: |
54+
This pull request has been automatically marked as stale due to inactivity.
55+
It will be closed in 30 days if no further activity occurs.
56+
57+
close-pr-message: |
58+
This pull request has been automatically closed due to inactivity.
59+
If you would like to continue this work, please reopen the PR or create a new one.
60+
61+
# Only exclude no-stale PRs (needs-information PRs follow standard timeline)
62+
exempt-pr-labels: 'no-stale'
63+
64+
# Separate job for needs-information issues ONLY with accelerated timeline
65+
stale-needs-info:
1366
runs-on: ubuntu-latest
1467
steps:
15-
- uses: actions/stale@v9
16-
with:
17-
repo-token: ${{ secrets.GITHUB_TOKEN }}
18-
stale-issue-message: 'This issue is marked stale. It will be closed in 30 days if it is not updated.'
19-
stale-pr-message: 'This pull request is marked stale. It will be closed in 30 days if it is not updated.'
20-
days-before-stale: 365
21-
days-before-close: 30
22-
stale-issue-label: "Stale"
23-
stale-pr-label: "Stale"
24-
operations-per-run: 10
25-
remove-stale-when-updated: true
68+
- uses: actions/stale@v9
69+
with:
70+
repo-token: ${{ secrets.GITHUB_TOKEN }}
71+
dry-run: true
72+
73+
# Accelerated timeline for needs-information
74+
days-before-stale: ${{ env.NEEDS_INFO_DAYS_BEFORE_STALE }}
75+
days-before-close: ${{ env.NEEDS_INFO_DAYS_BEFORE_CLOSE }}
76+
77+
# Explicit stale label configuration
78+
stale-issue-label: "stale"
79+
80+
# Only target ISSUES with needs-information label (not PRs)
81+
only-issue-labels: 'needs-information'
82+
83+
stale-issue-message: |
84+
This issue has been marked as stale because it requires additional information
85+
that has not been provided for 30 days. It will be closed in 7 days if the
86+
requested information is not provided.
87+
88+
close-issue-message: |
89+
This issue has been closed because the requested information was not provided within the specified timeframe.
90+
If you can provide the missing information, please reopen this issue or create a new one.
91+
92+
# Disable PR processing for this job
93+
days-before-pr-stale: -1
94+
days-before-pr-close: -1
95+
96+
# Remove stale label when issue becomes active again
97+
remove-stale-when-updated: true

CHANGELOG.md

Lines changed: 0 additions & 133 deletions
This file was deleted.

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,18 @@ func main() {
297297
```
298298
299299
300+
### Buffer Size Configuration
301+
302+
go-redis uses 0.5MiB read and write buffers by default for optimal performance. For high-throughput applications or large pipelines, you can customize buffer sizes:
303+
304+
```go
305+
rdb := redis.NewClient(&redis.Options{
306+
Addr: "localhost:6379",
307+
ReadBufferSize: 1024 * 1024, // 1MiB read buffer
308+
WriteBufferSize: 1024 * 1024, // 1MiB write buffer
309+
})
310+
```
311+
300312
### Advanced Configuration
301313
302314
go-redis supports extending the client identification phase to allow projects to send their own custom client identification.

0 commit comments

Comments
 (0)