Skip to content

Commit 3c6a81d

Browse files
authored
Merge branch 'master' into master
2 parents 51dfbae + fc26460 commit 3c6a81d

File tree

120 files changed

+2841
-2616
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+2841
-2616
lines changed

.github/release-drafter-config.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name-template: '$NEXT_MINOR_VERSION'
2+
tag-template: 'v$NEXT_MINOR_VERSION'
3+
autolabeler:
4+
- label: 'maintenance'
5+
files:
6+
- '*.md'
7+
- '.github/*'
8+
- label: 'bug'
9+
branch:
10+
- '/bug-.+'
11+
- label: 'maintenance'
12+
branch:
13+
- '/maintenance-.+'
14+
- label: 'feature'
15+
branch:
16+
- '/feature-.+'
17+
categories:
18+
- title: 'Breaking Changes'
19+
labels:
20+
- 'breakingchange'
21+
- title: '🧪 Experimental Features'
22+
labels:
23+
- 'experimental'
24+
- title: '🚀 New Features'
25+
labels:
26+
- 'feature'
27+
- 'enhancement'
28+
- title: '🐛 Bug Fixes'
29+
labels:
30+
- 'fix'
31+
- 'bugfix'
32+
- 'bug'
33+
- 'BUG'
34+
- title: '🧰 Maintenance'
35+
label: 'maintenance'
36+
change-template: '- $TITLE (#$NUMBER)'
37+
exclude-labels:
38+
- 'skip-changelog'
39+
template: |
40+
# Changes
41+
42+
$CHANGES
43+
44+
## Contributors
45+
We'd like to thank all the contributors who worked on this release!
46+
47+
$CONTRIBUTORS
48+

.github/workflows/commitlint.yml

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

.github/workflows/release-drafter.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
# branches to consider in the event; optional, defaults to all
6+
branches:
7+
- master
8+
9+
permissions: {}
10+
jobs:
11+
update_release_draft:
12+
permissions:
13+
pull-requests: write # to add label to PR (release-drafter/release-drafter)
14+
contents: write # to create a github release (release-drafter/release-drafter)
15+
16+
runs-on: ubuntu-latest
17+
steps:
18+
# Drafts your next Release notes as Pull Requests are merged into "master"
19+
- uses: release-drafter/release-drafter@v5
20+
with:
21+
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
22+
config-name: release-drafter-config.yml
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

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

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
*.rdb
2-
testdata/*/
2+
testdata/*
33
.idea/

CHANGELOG.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
1-
## v9 UNRELEASED
1+
## v9 2023-01-30
2+
3+
### Breaking
4+
5+
- Changed Pipelines to not be thread-safe any more.
26

37
### Added
48

5-
- Added support for [RESP3](https://github.com/antirez/RESP3/blob/master/spec.md) protocol.
6-
Contributed by @monkey92t who has done a lot of work recently.
9+
- Added support for [RESP3](https://github.com/antirez/RESP3/blob/master/spec.md) protocol. It was
10+
contributed by @monkey92t who has done the majority of work in this release.
711
- Added `ContextTimeoutEnabled` option that controls whether the client respects context timeouts
812
and deadlines. See
913
[Redis Timeouts](https://redis.uptrace.dev/guide/go-redis-debugging.html#timeouts) for details.
1014
- Added `ParseClusterURL` to parse URLs into `ClusterOptions`, for example,
1115
`redis://user:password@localhost:6789?dial_timeout=3&read_timeout=6s&addr=localhost:6790&addr=localhost:6791`.
1216
- Added metrics instrumentation using `redisotel.IstrumentMetrics`. See
1317
[documentation](https://redis.uptrace.dev/guide/go-redis-monitoring.html)
18+
- Added `redis.HasErrorPrefix` to help working with errors.
1419

1520
### Changed
1621

@@ -33,4 +38,4 @@
3338
### Fixed
3439

3540
- Improved and fixed pipeline retries.
36-
- As usual, added more commands and fixed some bugs.
41+
- As usually, added support for more commands and fixed some bugs.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2013 The github.com/go-redis/redis Authors.
1+
Copyright (c) 2013 The github.com/redis/go-redis Authors.
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without

Makefile

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
PACKAGE_DIRS := $(shell find . -mindepth 2 -type f -name 'go.mod' -exec dirname {} \; | sort)
1+
GO_MOD_DIRS := $(shell find . -type f -name 'go.mod' -exec dirname {} \; | sort)
22

33
test: testdeps
4-
go test ./...
5-
go test ./... -short -race
6-
go test ./... -run=NONE -bench=. -benchmem
7-
env GOOS=linux GOARCH=386 go test ./...
8-
go vet
4+
set -e; for dir in $(GO_MOD_DIRS); do \
5+
echo "go test in $${dir}"; \
6+
(cd "$${dir}" && \
7+
go test && \
8+
go test ./... -short -race && \
9+
go test ./... -run=NONE -bench=. -benchmem && \
10+
env GOOS=linux GOARCH=386 go test && \
11+
go vet); \
12+
done
913
cd internal/customvet && go build .
1014
go vet -vettool ./internal/customvet/customvet
1115

@@ -18,19 +22,19 @@ bench: testdeps
1822

1923
testdata/redis:
2024
mkdir -p $@
21-
wget -qO- https://download.redis.io/releases/redis-7.0.0.tar.gz | tar xvz --strip-components=1 -C $@
25+
wget -qO- https://download.redis.io/releases/redis-7.0.7.tar.gz | tar xvz --strip-components=1 -C $@
2226

2327
testdata/redis/src/redis-server: testdata/redis
2428
cd $< && make all
2529

2630
fmt:
2731
gofmt -w -s ./
28-
goimports -w -local github.com/go-redis/redis ./
32+
goimports -w -local github.com/redis/go-redis ./
2933

3034
go_mod_tidy:
31-
set -e; for dir in $(PACKAGE_DIRS); do \
35+
set -e; for dir in $(GO_MOD_DIRS); do \
3236
echo "go mod tidy in $${dir}"; \
3337
(cd "$${dir}" && \
3438
go get -u ./... && \
35-
go mod tidy -compat=1.17); \
39+
go mod tidy -compat=1.18); \
3640
done

README.md

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
11
# Redis client for Go
22

3-
[![build workflow](https://github.com/go-redis/redis/actions/workflows/build.yml/badge.svg)](https://github.com/go-redis/redis/actions)
4-
[![PkgGoDev](https://pkg.go.dev/badge/github.com/go-redis/redis/v8)](https://pkg.go.dev/github.com/go-redis/redis/v8?tab=doc)
3+
[![build workflow](https://github.com/redis/go-redis/actions/workflows/build.yml/badge.svg)](https://github.com/redis/go-redis/actions)
4+
[![PkgGoDev](https://pkg.go.dev/badge/github.com/redis/go-redis/v9)](https://pkg.go.dev/github.com/redis/go-redis/v9?tab=doc)
55
[![Documentation](https://img.shields.io/badge/redis-documentation-informational)](https://redis.uptrace.dev/)
66
[![Chat](https://discordapp.com/api/guilds/752070105847955518/widget.png)](https://discord.gg/rWtp5Aj)
77

88
> go-redis is brought to you by :star: [**uptrace/uptrace**](https://github.com/uptrace/uptrace).
99
> Uptrace is an open-source APM tool that supports distributed tracing, metrics, and logs. You can
1010
> use it to monitor applications and set up automatic alerts to receive notifications via email,
11-
> Slack, Telegram, and others. Star it as well!
11+
> Slack, Telegram, and others.
12+
>
13+
> See [OpenTelemetry](example/otel) example which demonstrates how you can use Uptrace to monitor
14+
> go-redis.
1215
1316
## Resources
1417

1518
- [Documentation](https://redis.uptrace.dev)
16-
- [Discussions](https://github.com/go-redis/redis/discussions)
19+
- [Discussions](https://github.com/redis/go-redis/discussions)
1720
- [Chat](https://discord.gg/rWtp5Aj)
18-
- [Reference](https://pkg.go.dev/github.com/go-redis/redis/v8?tab=doc)
19-
- [Examples](https://pkg.go.dev/github.com/go-redis/redis/v8?tab=doc#pkg-examples)
21+
- [Reference](https://pkg.go.dev/github.com/redis/go-redis/v9)
22+
- [Examples](https://pkg.go.dev/github.com/redis/go-redis/v9#pkg-examples)
2023

2124
## Ecosystem
2225

@@ -50,24 +53,18 @@ module:
5053
go mod init github.com/my/repo
5154
```
5255

53-
If you are using **Redis 6**, install go-redis/**v8**:
56+
Then install go-redis/**v9**:
5457

5558
```shell
56-
go get github.com/go-redis/redis/v8
57-
```
58-
59-
If you are using **Redis 7**, install go-redis/**v9**:
60-
61-
```shell
62-
go get github.com/go-redis/redis/v9
59+
go get github.com/redis/go-redis/v9
6360
```
6461

6562
## Quickstart
6663

6764
```go
6865
import (
6966
"context"
70-
"github.com/go-redis/redis/v8"
67+
"github.com/redis/go-redis/v9"
7168
"fmt"
7269
)
7370

@@ -177,6 +174,6 @@ go test
177174

178175
Thanks to all the people who already contributed!
179176

180-
<a href="https://github.com/go-redis/redis/graphs/contributors">
181-
<img src="https://contributors-img.web.app/image?repo=go-redis/redis" />
177+
<a href="https://github.com/redis/go-redis/graphs/contributors">
178+
<img src="https://contributors-img.web.app/image?repo=redis/go-redis" />
182179
</a>

bench_decode_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"testing"
99
"time"
1010

11-
"github.com/go-redis/redis/v9/internal/proto"
11+
"github.com/redis/go-redis/v9/internal/proto"
1212
)
1313

1414
var ctx = context.TODO()

0 commit comments

Comments
 (0)