Skip to content

Commit 27f0add

Browse files
authored
Merge pull request #2111 from go-redis/chore/v9
chore: v9
2 parents a8e56a2 + a18fad5 commit 27f0add

Some content is hidden

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

66 files changed

+107
-114
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ module:
6363
go mod init github.com/my/repo
6464
```
6565

66-
And then install go-redis/v8 (note _v8_ in the import; omitting it is a popular mistake):
66+
If you are using **Redis 6**, install go-redis/**v8**:
6767

6868
```shell
6969
go get github.com/go-redis/redis/v8
7070
```
7171

72-
If you need **Redis 7** support, install go-redis/v9:
72+
If you are using **Redis 7**, install **go-redis/v9**:
7373

7474
```shell
7575
go get github.com/go-redis/redis/v9

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/v8/internal/proto"
11+
"github.com/go-redis/redis/v9/internal/proto"
1212
)
1313

1414
var ctx = context.TODO()

bench_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"testing"
1111
"time"
1212

13-
"github.com/go-redis/redis/v8"
13+
"github.com/go-redis/redis/v9"
1414
)
1515

1616
func benchmarkRedisClient(ctx context.Context, poolSize int) *redis.Client {

cluster.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import (
1212
"sync/atomic"
1313
"time"
1414

15-
"github.com/go-redis/redis/v8/internal"
16-
"github.com/go-redis/redis/v8/internal/hashtag"
17-
"github.com/go-redis/redis/v8/internal/pool"
18-
"github.com/go-redis/redis/v8/internal/proto"
19-
"github.com/go-redis/redis/v8/internal/rand"
15+
"github.com/go-redis/redis/v9/internal"
16+
"github.com/go-redis/redis/v9/internal/hashtag"
17+
"github.com/go-redis/redis/v9/internal/pool"
18+
"github.com/go-redis/redis/v9/internal/proto"
19+
"github.com/go-redis/redis/v9/internal/rand"
2020
)
2121

2222
var errClusterNoNodes = fmt.Errorf("redis: cluster has no nodes")

cluster_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import (
1212
. "github.com/onsi/ginkgo"
1313
. "github.com/onsi/gomega"
1414

15-
"github.com/go-redis/redis/v8"
16-
"github.com/go-redis/redis/v8/internal/hashtag"
15+
"github.com/go-redis/redis/v9"
16+
"github.com/go-redis/redis/v9/internal/hashtag"
1717
)
1818

1919
type clusterScenario struct {

command.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import (
77
"strconv"
88
"time"
99

10-
"github.com/go-redis/redis/v8/internal"
11-
"github.com/go-redis/redis/v8/internal/hscan"
12-
"github.com/go-redis/redis/v8/internal/proto"
13-
"github.com/go-redis/redis/v8/internal/util"
10+
"github.com/go-redis/redis/v9/internal"
11+
"github.com/go-redis/redis/v9/internal/hscan"
12+
"github.com/go-redis/redis/v9/internal/proto"
13+
"github.com/go-redis/redis/v9/internal/util"
1414
)
1515

1616
type Cmder interface {

command_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"errors"
55
"time"
66

7-
"github.com/go-redis/redis/v8"
7+
"github.com/go-redis/redis/v9"
88

99
. "github.com/onsi/ginkgo"
1010
. "github.com/onsi/gomega"

commands.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"io"
77
"time"
88

9-
"github.com/go-redis/redis/v8/internal"
9+
"github.com/go-redis/redis/v9/internal"
1010
)
1111

1212
// KeepTTL is a Redis KEEPTTL option to keep existing TTL, it requires your redis-server version >= 6.0,

commands_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
. "github.com/onsi/ginkgo"
1111
. "github.com/onsi/gomega"
1212

13-
"github.com/go-redis/redis/v8"
14-
"github.com/go-redis/redis/v8/internal/proto"
13+
"github.com/go-redis/redis/v9"
14+
"github.com/go-redis/redis/v9/internal/proto"
1515
)
1616

1717
var _ = Describe("Commands", func() {

error.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"net"
77
"strings"
88

9-
"github.com/go-redis/redis/v8/internal/pool"
10-
"github.com/go-redis/redis/v8/internal/proto"
9+
"github.com/go-redis/redis/v9/internal/pool"
10+
"github.com/go-redis/redis/v9/internal/proto"
1111
)
1212

1313
// ErrClosed performs any operation on the closed client will return this error.

0 commit comments

Comments
 (0)