Skip to content

Commit 8db53fa

Browse files
authored
Merge pull request #2362 from redis/chore/update-import-path
chore: update import path
2 parents d671d60 + d4582b0 commit 8db53fa

Some content is hidden

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

90 files changed

+441
-747
lines changed

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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ testdata/redis/src/redis-server: testdata/redis
2525

2626
fmt:
2727
gofmt -w -s ./
28-
goimports -w -local github.com/go-redis/redis ./
28+
goimports -w -local github.com/redis/go-redis ./
2929

3030
go_mod_tidy:
3131
set -e; for dir in $(PACKAGE_DIRS); do \
3232
echo "go mod tidy in $${dir}"; \
3333
(cd "$${dir}" && \
3434
go get -u ./... && \
35-
go mod tidy -compat=1.17); \
35+
go mod tidy -compat=1.18); \
3636
done

README.md

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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

@@ -16,17 +16,17 @@
1616
## Resources
1717

1818
- [Documentation](https://redis.uptrace.dev)
19-
- [Discussions](https://github.com/go-redis/redis/discussions)
19+
- [Discussions](https://github.com/redis/go-redis/discussions)
2020
- [Chat](https://discord.gg/rWtp5Aj)
21-
- [Reference](https://pkg.go.dev/github.com/go-redis/redis/v9)
22-
- [Examples](https://pkg.go.dev/github.com/go-redis/redis/v9#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)
2323

2424
## Ecosystem
2525

2626
- [Redis Mock](https://github.com/go-redis/redismock)
2727
- [Distributed Locks](https://github.com/bsm/redislock)
2828
- [Redis Cache](https://github.com/go-redis/cache)
29-
- [Rate limiting](https://github.com/go-redis/redis_rate)
29+
- [Rate limiting](https://github.com/redis/go-redis_rate)
3030

3131
This client also works with [Kvrocks](https://github.com/apache/incubator-kvrocks), a distributed
3232
key value NoSQL database that uses RocksDB as storage engine and is compatible with Redis protocol.
@@ -53,25 +53,18 @@ module:
5353
go mod init github.com/my/repo
5454
```
5555

56-
If you are using **Redis 7**, install go-redis/**v9**:
56+
Then install go-redis/**v9**:
5757

5858
```shell
59-
go get github.com/go-redis/redis/v9
59+
go get github.com/redis/go-redis/v9
6060
```
6161

62-
You can also use the stable version go-redis/**v8** (v8 does not support redis 7):
63-
64-
```shell
65-
go get github.com/go-redis/redis/v8
66-
```
67-
68-
6962
## Quickstart
7063

7164
```go
7265
import (
7366
"context"
74-
"github.com/go-redis/redis/v8"
67+
"github.com/redis/go-redis/v9"
7568
"fmt"
7669
)
7770

@@ -181,6 +174,6 @@ go test
181174

182175
Thanks to all the people who already contributed!
183176

184-
<a href="https://github.com/go-redis/redis/graphs/contributors">
185-
<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" />
186179
</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()

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/v9"
13+
"github.com/redis/go-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
@@ -14,11 +14,11 @@ import (
1414
"sync/atomic"
1515
"time"
1616

17-
"github.com/go-redis/redis/v9/internal"
18-
"github.com/go-redis/redis/v9/internal/hashtag"
19-
"github.com/go-redis/redis/v9/internal/pool"
20-
"github.com/go-redis/redis/v9/internal/proto"
21-
"github.com/go-redis/redis/v9/internal/rand"
17+
"github.com/redis/go-redis/v9/internal"
18+
"github.com/redis/go-redis/v9/internal/hashtag"
19+
"github.com/redis/go-redis/v9/internal/pool"
20+
"github.com/redis/go-redis/v9/internal/proto"
21+
"github.com/redis/go-redis/v9/internal/rand"
2222
)
2323

2424
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
@@ -16,8 +16,8 @@ import (
1616
. "github.com/onsi/gomega"
1717
"github.com/stretchr/testify/assert"
1818

19-
"github.com/go-redis/redis/v9"
20-
"github.com/go-redis/redis/v9/internal/hashtag"
19+
"github.com/redis/go-redis/v9"
20+
"github.com/redis/go-redis/v9/internal/hashtag"
2121
)
2222

2323
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/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"
10+
"github.com/redis/go-redis/v9/internal"
11+
"github.com/redis/go-redis/v9/internal/hscan"
12+
"github.com/redis/go-redis/v9/internal/proto"
13+
"github.com/redis/go-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/v9"
7+
"github.com/redis/go-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
@@ -8,7 +8,7 @@ import (
88
"strings"
99
"time"
1010

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

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

0 commit comments

Comments
 (0)