Skip to content

Commit a7ef0ed

Browse files
author
David.hou
committed
replace go-redis/redis to Devister/redis
1 parent 47d6032 commit a7ef0ed

Some content is hidden

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

44 files changed

+78
-78
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ matrix:
1818
env:
1919
- GO111MODULE=on
2020

21-
go_import_path: github.com/go-redis/redis
21+
go_import_path: github.com/Devister/redis
2222

2323
before_install:
2424
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.21.0

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@
3434

3535
## v6.12
3636

37-
- ClusterClient got new option called `ClusterSlots` which allows to build cluster of normal Redis Servers that don't have cluster mode enabled. See https://godoc.org/github.com/go-redis/redis#example-NewClusterClient--ManualSetup
37+
- ClusterClient got new option called `ClusterSlots` which allows to build cluster of normal Redis Servers that don't have cluster mode enabled. See https://godoc.org/github.com/Devister/redis#example-NewClusterClient--ManualSetup

LICENSE

+1-1
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/Devister/redis Authors.
22
All rights reserved.
33

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

README.md

+18-18
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
11
# Redis client for Golang
22

3-
[![Build Status](https://travis-ci.org/go-redis/redis.png?branch=master)](https://travis-ci.org/go-redis/redis)
4-
[![GoDoc](https://godoc.org/github.com/go-redis/redis?status.svg)](https://godoc.org/github.com/go-redis/redis)
3+
[![Build Status](https://travis-ci.org/Devister/redis.png?branch=master)](https://travis-ci.org/Devister/redis)
4+
[![GoDoc](https://godoc.org/github.com/Devister/redis?status.svg)](https://godoc.org/github.com/Devister/redis)
55
[![Airbrake](https://img.shields.io/badge/kudos-airbrake.io-orange.svg)](https://airbrake.io)
66

77
Supports:
88

99
- Redis 3 commands except QUIT, MONITOR, SLOWLOG and SYNC.
1010
- Automatic connection pooling with [circuit breaker](https://en.wikipedia.org/wiki/Circuit_breaker_design_pattern) support.
11-
- [Pub/Sub](https://godoc.org/github.com/go-redis/redis#PubSub).
12-
- [Transactions](https://godoc.org/github.com/go-redis/redis#example-Client-TxPipeline).
13-
- [Pipeline](https://godoc.org/github.com/go-redis/redis#example-Client-Pipeline) and [TxPipeline](https://godoc.org/github.com/go-redis/redis#example-Client-TxPipeline).
14-
- [Scripting](https://godoc.org/github.com/go-redis/redis#Script).
15-
- [Timeouts](https://godoc.org/github.com/go-redis/redis#Options).
16-
- [Redis Sentinel](https://godoc.org/github.com/go-redis/redis#NewFailoverClient).
17-
- [Redis Cluster](https://godoc.org/github.com/go-redis/redis#NewClusterClient).
18-
- [Cluster of Redis Servers](https://godoc.org/github.com/go-redis/redis#example-NewClusterClient--ManualSetup) without using cluster mode and Redis Sentinel.
19-
- [Ring](https://godoc.org/github.com/go-redis/redis#NewRing).
20-
- [Instrumentation](https://godoc.org/github.com/go-redis/redis#ex-package--Instrumentation).
11+
- [Pub/Sub](https://godoc.org/github.com/Devister/redis#PubSub).
12+
- [Transactions](https://godoc.org/github.com/Devister/redis#example-Client-TxPipeline).
13+
- [Pipeline](https://godoc.org/github.com/Devister/redis#example-Client-Pipeline) and [TxPipeline](https://godoc.org/github.com/Devister/redis#example-Client-TxPipeline).
14+
- [Scripting](https://godoc.org/github.com/Devister/redis#Script).
15+
- [Timeouts](https://godoc.org/github.com/Devister/redis#Options).
16+
- [Redis Sentinel](https://godoc.org/github.com/Devister/redis#NewFailoverClient).
17+
- [Redis Cluster](https://godoc.org/github.com/Devister/redis#NewClusterClient).
18+
- [Cluster of Redis Servers](https://godoc.org/github.com/Devister/redis#example-NewClusterClient--ManualSetup) without using cluster mode and Redis Sentinel.
19+
- [Ring](https://godoc.org/github.com/Devister/redis#NewRing).
20+
- [Instrumentation](https://godoc.org/github.com/Devister/redis#ex-package--Instrumentation).
2121
- [Cache friendly](https://github.com/go-redis/cache).
22-
- [Rate limiting](https://github.com/go-redis/redis_rate).
22+
- [Rate limiting](https://github.com/Devister/redis_rate).
2323
- [Distributed Locks](https://github.com/bsm/redislock).
2424

25-
API docs: https://godoc.org/github.com/go-redis/redis.
26-
Examples: https://godoc.org/github.com/go-redis/redis#pkg-examples.
25+
API docs: https://godoc.org/github.com/Devister/redis.
26+
Examples: https://godoc.org/github.com/Devister/redis#pkg-examples.
2727

2828
## Installation
2929

3030
go-redis requires a Go version with [Modules](https://github.com/golang/go/wiki/Modules) support and uses import versioning. So please make sure to initialize a Go module before installing go-redis:
3131

3232
``` shell
3333
go mod init github.com/my/repo
34-
go get github.com/go-redis/redis/v7
34+
go get github.com/Devister/redis/v7
3535
```
3636

3737
Import:
3838

3939
``` go
40-
import "github.com/go-redis/redis/v7"
40+
import "github.com/Devister/redis/v7"
4141
```
4242

4343
## Quickstart
@@ -87,7 +87,7 @@ func ExampleClient() {
8787

8888
## Howto
8989

90-
Please go through [examples](https://godoc.org/github.com/go-redis/redis#pkg-examples) to get an idea how to use this package.
90+
Please go through [examples](https://godoc.org/github.com/Devister/redis#pkg-examples) to get an idea how to use this package.
9191

9292
## Look and feel
9393

bench_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"testing"
99
"time"
1010

11-
"github.com/go-redis/redis/v7"
11+
"github.com/Devister/redis/v7"
1212
)
1313

1414
func benchmarkRedisClient(poolSize int) *redis.Client {

cluster.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ import (
1313
"sync/atomic"
1414
"time"
1515

16-
"github.com/go-redis/redis/v7/internal"
17-
"github.com/go-redis/redis/v7/internal/hashtag"
18-
"github.com/go-redis/redis/v7/internal/pool"
19-
"github.com/go-redis/redis/v7/internal/proto"
16+
"github.com/Devister/redis/v7/internal"
17+
"github.com/Devister/redis/v7/internal/hashtag"
18+
"github.com/Devister/redis/v7/internal/pool"
19+
"github.com/Devister/redis/v7/internal/proto"
2020
)
2121

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

cluster_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
"sync"
1010
"time"
1111

12-
"github.com/go-redis/redis/v7"
13-
"github.com/go-redis/redis/v7/internal/hashtag"
12+
"github.com/Devister/redis/v7"
13+
"github.com/Devister/redis/v7/internal/hashtag"
1414

1515
. "github.com/onsi/ginkgo"
1616
. "github.com/onsi/gomega"

command.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"strings"
88
"time"
99

10-
"github.com/go-redis/redis/v7/internal"
11-
"github.com/go-redis/redis/v7/internal/proto"
12-
"github.com/go-redis/redis/v7/internal/util"
10+
"github.com/Devister/redis/v7/internal"
11+
"github.com/Devister/redis/v7/internal/proto"
12+
"github.com/Devister/redis/v7/internal/util"
1313
)
1414

1515
type Cmder interface {

command_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"errors"
55
"time"
66

7-
redis "github.com/go-redis/redis/v7"
7+
redis "github.com/Devister/redis/v7"
88

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

commands.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"io"
66
"time"
77

8-
"github.com/go-redis/redis/v7/internal"
8+
"github.com/Devister/redis/v7/internal"
99
)
1010

1111
func usePrecise(dur time.Duration) bool {

commands_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
. "github.com/onsi/ginkgo"
1010
. "github.com/onsi/gomega"
1111

12-
"github.com/go-redis/redis/v7"
13-
"github.com/go-redis/redis/v7/internal/proto"
12+
"github.com/Devister/redis/v7"
13+
"github.com/Devister/redis/v7/internal/proto"
1414
)
1515

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

error.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"net"
77
"strings"
88

9-
"github.com/go-redis/redis/v7/internal/proto"
9+
"github.com/Devister/redis/v7/internal/proto"
1010
)
1111

1212
func isRetryableError(err error, retryTimeout bool) bool {

example_instrumentation_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"context"
55
"fmt"
66

7-
"github.com/go-redis/redis/v7"
7+
"github.com/Devister/redis/v7"
88
)
99

1010
type redisHook struct{}

example_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"sync"
77
"time"
88

9-
"github.com/go-redis/redis/v7"
9+
"github.com/Devister/redis/v7"
1010
)
1111

1212
var rdb *redis.Client

export_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"net"
66
"strings"
77

8-
"github.com/go-redis/redis/v7/internal/hashtag"
9-
"github.com/go-redis/redis/v7/internal/pool"
8+
"github.com/Devister/redis/v7/internal/hashtag"
9+
"github.com/Devister/redis/v7/internal/pool"
1010
)
1111

1212
func (c *baseClient) Pool() pool.Pooler {

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/go-redis/redis/v7
1+
module github.com/Devister/redis/v7
22

33
require (
44
github.com/golang/protobuf v1.3.2 // indirect

internal/pool/bench_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"testing"
77
"time"
88

9-
"github.com/go-redis/redis/v7/internal/pool"
9+
"github.com/Devister/redis/v7/internal/pool"
1010
)
1111

1212
type poolGetPutBenchmark struct {

internal/pool/conn.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"sync/atomic"
77
"time"
88

9-
"github.com/go-redis/redis/v7/internal/proto"
9+
"github.com/Devister/redis/v7/internal/proto"
1010
)
1111

1212
var noDeadline = time.Time{}

internal/pool/pool.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"sync/atomic"
99
"time"
1010

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

1414
var ErrClosed = errors.New("redis: client is closed")

internal/pool/pool_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"testing"
77
"time"
88

9-
"github.com/go-redis/redis/v7/internal/pool"
9+
"github.com/Devister/redis/v7/internal/pool"
1010

1111
. "github.com/onsi/ginkgo"
1212
. "github.com/onsi/gomega"

internal/proto/reader.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"io"
77

8-
"github.com/go-redis/redis/v7/internal/util"
8+
"github.com/Devister/redis/v7/internal/util"
99
)
1010

1111
const (

internal/proto/reader_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"bytes"
55
"testing"
66

7-
"github.com/go-redis/redis/v7/internal/proto"
7+
"github.com/Devister/redis/v7/internal/proto"
88
)
99

1010
func BenchmarkReader_ParseReply_Status(b *testing.B) {

internal/proto/scan.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"reflect"
77

8-
"github.com/go-redis/redis/v7/internal/util"
8+
"github.com/Devister/redis/v7/internal/util"
99
)
1010

1111
func Scan(b []byte, v interface{}) error {

internal/proto/write_buffer_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"testing"
88
"time"
99

10-
"github.com/go-redis/redis/v7/internal/proto"
10+
"github.com/Devister/redis/v7/internal/proto"
1111

1212
. "github.com/onsi/ginkgo"
1313
. "github.com/onsi/gomega"

internal/proto/writer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"strconv"
99
"time"
1010

11-
"github.com/go-redis/redis/v7/internal/util"
11+
"github.com/Devister/redis/v7/internal/util"
1212
)
1313

1414
type Writer struct {

internal/util.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"context"
55
"time"
66

7-
"github.com/go-redis/redis/v7/internal/util"
7+
"github.com/Devister/redis/v7/internal/util"
88
)
99

1010
func Sleep(ctx context.Context, dur time.Duration) error {

iterator_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package redis_test
33
import (
44
"fmt"
55

6-
"github.com/go-redis/redis/v7"
6+
"github.com/Devister/redis/v7"
77

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

main_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"testing"
1313
"time"
1414

15-
"github.com/go-redis/redis/v7"
15+
"github.com/Devister/redis/v7"
1616

1717
. "github.com/onsi/ginkgo"
1818
. "github.com/onsi/gomega"

options.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"strings"
1313
"time"
1414

15-
"github.com/go-redis/redis/v7/internal/pool"
15+
"github.com/Devister/redis/v7/internal/pool"
1616
)
1717

1818
// Limiter is the interface of a rate limiter or a circuit breaker.

pipeline.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"context"
55
"sync"
66

7-
"github.com/go-redis/redis/v7/internal/pool"
7+
"github.com/Devister/redis/v7/internal/pool"
88
)
99

1010
type pipelineExecer func(context.Context, []Cmder) error

pipeline_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package redis_test
22

33
import (
4-
"github.com/go-redis/redis/v7"
4+
"github.com/Devister/redis/v7"
55

66
. "github.com/onsi/ginkgo"
77
. "github.com/onsi/gomega"

pool_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"context"
55
"time"
66

7-
"github.com/go-redis/redis/v7"
7+
"github.com/Devister/redis/v7"
88

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

pubsub.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88
"sync"
99
"time"
1010

11-
"github.com/go-redis/redis/v7/internal"
12-
"github.com/go-redis/redis/v7/internal/pool"
13-
"github.com/go-redis/redis/v7/internal/proto"
11+
"github.com/Devister/redis/v7/internal"
12+
"github.com/Devister/redis/v7/internal/pool"
13+
"github.com/Devister/redis/v7/internal/proto"
1414
)
1515

1616
const pingTimeout = 30 * time.Second

pubsub_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"sync"
77
"time"
88

9-
"github.com/go-redis/redis/v7"
9+
"github.com/Devister/redis/v7"
1010

1111
. "github.com/onsi/ginkgo"
1212
. "github.com/onsi/gomega"

race_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"testing"
1111
"time"
1212

13-
"github.com/go-redis/redis/v7"
13+
"github.com/Devister/redis/v7"
1414

1515
. "github.com/onsi/ginkgo"
1616
. "github.com/onsi/gomega"

redis.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66
"log"
77
"time"
88

9-
"github.com/go-redis/redis/v7/internal"
10-
"github.com/go-redis/redis/v7/internal/pool"
11-
"github.com/go-redis/redis/v7/internal/proto"
9+
"github.com/Devister/redis/v7/internal"
10+
"github.com/Devister/redis/v7/internal/pool"
11+
"github.com/Devister/redis/v7/internal/proto"
1212
)
1313

1414
// Nil reply returned by Redis when key does not exist.

0 commit comments

Comments
 (0)