Skip to content

Commit d89a58a

Browse files
committed
Merge pull request redis#305 from go-redis/fix/gopkg-v4
Use redis.v4 that is in alpha/beta state.
2 parents 09ec5f0 + 38d30a4 commit d89a58a

29 files changed

+38
-38
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ install:
1919
- go get github.com/onsi/gomega
2020
- go get github.com/garyburd/redigo/redis
2121
- mkdir -p $HOME/gopath/src/gopkg.in
22-
- mv $HOME/gopath/src/github.com/go-redis/redis $HOME/gopath/src/gopkg.in/redis.v3
23-
- cd $HOME/gopath/src/gopkg.in/redis.v3
22+
- mv $HOME/gopath/src/github.com/go-redis/redis $HOME/gopath/src/gopkg.in/redis.v4
23+
- cd $HOME/gopath/src/gopkg.in/redis.v4

bench_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
redigo "github.com/garyburd/redigo/redis"
99

10-
"gopkg.in/redis.v3"
10+
"gopkg.in/redis.v4"
1111
)
1212

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

cluster.go

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

9-
"gopkg.in/redis.v3/internal/hashtag"
10-
"gopkg.in/redis.v3/internal/pool"
9+
"gopkg.in/redis.v4/internal/hashtag"
10+
"gopkg.in/redis.v4/internal/pool"
1111
)
1212

1313
// ClusterClient is a Redis Cluster client representing a pool of zero

cluster_test.go

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

17-
"gopkg.in/redis.v3"
18-
"gopkg.in/redis.v3/internal/hashtag"
17+
"gopkg.in/redis.v4"
18+
"gopkg.in/redis.v4/internal/hashtag"
1919
)
2020

2121
type clusterScenario struct {

command.go

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

10-
"gopkg.in/redis.v3/internal/pool"
10+
"gopkg.in/redis.v4/internal/pool"
1111
)
1212

1313
var (

command_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
. "github.com/onsi/ginkgo"
55
. "github.com/onsi/gomega"
66

7-
"gopkg.in/redis.v3"
7+
"gopkg.in/redis.v4"
88
)
99

1010
var _ = Describe("Command", func() {

commands_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
. "github.com/onsi/ginkgo"
1010
. "github.com/onsi/gomega"
1111

12-
"gopkg.in/redis.v3"
12+
"gopkg.in/redis.v4"
1313
)
1414

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

example_test.go

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

9-
"gopkg.in/redis.v3"
9+
"gopkg.in/redis.v4"
1010
)
1111

1212
var client *redis.Client

export_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package redis
33
import (
44
"time"
55

6-
"gopkg.in/redis.v3/internal/pool"
6+
"gopkg.in/redis.v4/internal/pool"
77
)
88

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

internal/pool/bench_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"testing"
66
"time"
77

8-
"gopkg.in/redis.v3/internal/pool"
8+
"gopkg.in/redis.v4/internal/pool"
99
)
1010

1111
func benchmarkPoolGetPut(b *testing.B, poolSize int) {

0 commit comments

Comments
 (0)