Merge pull request #305 from go-redis/fix/gopkg-v4

Use redis.v4 that is in alpha/beta state.
This commit is contained in:
Vladimir Mihailenco 2016-04-09 13:32:42 +03:00
commit d89a58af91
29 changed files with 38 additions and 38 deletions

View File

@ -19,5 +19,5 @@ install:
- go get github.com/onsi/gomega - go get github.com/onsi/gomega
- go get github.com/garyburd/redigo/redis - go get github.com/garyburd/redigo/redis
- mkdir -p $HOME/gopath/src/gopkg.in - mkdir -p $HOME/gopath/src/gopkg.in
- mv $HOME/gopath/src/github.com/go-redis/redis $HOME/gopath/src/gopkg.in/redis.v3 - mv $HOME/gopath/src/github.com/go-redis/redis $HOME/gopath/src/gopkg.in/redis.v4
- cd $HOME/gopath/src/gopkg.in/redis.v3 - cd $HOME/gopath/src/gopkg.in/redis.v4

View File

@ -7,7 +7,7 @@ import (
redigo "github.com/garyburd/redigo/redis" redigo "github.com/garyburd/redigo/redis"
"gopkg.in/redis.v3" "gopkg.in/redis.v4"
) )
func benchmarkRedisClient(poolSize int) *redis.Client { func benchmarkRedisClient(poolSize int) *redis.Client {

View File

@ -6,8 +6,8 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
"gopkg.in/redis.v3/internal/hashtag" "gopkg.in/redis.v4/internal/hashtag"
"gopkg.in/redis.v3/internal/pool" "gopkg.in/redis.v4/internal/pool"
) )
// ClusterClient is a Redis Cluster client representing a pool of zero // ClusterClient is a Redis Cluster client representing a pool of zero

View File

@ -14,8 +14,8 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"gopkg.in/redis.v3" "gopkg.in/redis.v4"
"gopkg.in/redis.v3/internal/hashtag" "gopkg.in/redis.v4/internal/hashtag"
) )
type clusterScenario struct { type clusterScenario struct {

View File

@ -7,7 +7,7 @@ import (
"strings" "strings"
"time" "time"
"gopkg.in/redis.v3/internal/pool" "gopkg.in/redis.v4/internal/pool"
) )
var ( var (

View File

@ -4,7 +4,7 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"gopkg.in/redis.v3" "gopkg.in/redis.v4"
) )
var _ = Describe("Command", func() { var _ = Describe("Command", func() {

View File

@ -9,7 +9,7 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"gopkg.in/redis.v3" "gopkg.in/redis.v4"
) )
var _ = Describe("Commands", func() { var _ = Describe("Commands", func() {

View File

@ -6,7 +6,7 @@ import (
"sync" "sync"
"time" "time"
"gopkg.in/redis.v3" "gopkg.in/redis.v4"
) )
var client *redis.Client var client *redis.Client

View File

@ -3,7 +3,7 @@ package redis
import ( import (
"time" "time"
"gopkg.in/redis.v3/internal/pool" "gopkg.in/redis.v4/internal/pool"
) )
func (c *baseClient) Pool() pool.Pooler { func (c *baseClient) Pool() pool.Pooler {

View File

@ -5,7 +5,7 @@ import (
"testing" "testing"
"time" "time"
"gopkg.in/redis.v3/internal/pool" "gopkg.in/redis.v4/internal/pool"
) )
func benchmarkPoolGetPut(b *testing.B, poolSize int) { func benchmarkPoolGetPut(b *testing.B, poolSize int) {

View File

@ -9,7 +9,7 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"gopkg.in/redis.v3/internal/pool" "gopkg.in/redis.v4/internal/pool"
) )
var _ = Describe("ConnPool", func() { var _ = Describe("ConnPool", func() {

View File

@ -14,7 +14,7 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"gopkg.in/redis.v3" "gopkg.in/redis.v4"
) )
const ( const (
@ -94,7 +94,7 @@ var _ = AfterSuite(func() {
func TestGinkgoSuite(t *testing.T) { func TestGinkgoSuite(t *testing.T) {
RegisterFailHandler(Fail) RegisterFailHandler(Fail)
RunSpecs(t, "gopkg.in/redis.v3") RunSpecs(t, "gopkg.in/redis.v4")
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------

View File

@ -4,7 +4,7 @@ import (
"net" "net"
"time" "time"
"gopkg.in/redis.v3/internal/pool" "gopkg.in/redis.v4/internal/pool"
) )
type Options struct { type Options struct {

View File

@ -6,7 +6,7 @@ import (
"net" "net"
"strconv" "strconv"
"gopkg.in/redis.v3/internal/pool" "gopkg.in/redis.v4/internal/pool"
) )
const ( const (

View File

@ -5,7 +5,7 @@ import (
"bytes" "bytes"
"testing" "testing"
"gopkg.in/redis.v3/internal/pool" "gopkg.in/redis.v4/internal/pool"
) )
func BenchmarkParseReplyStatus(b *testing.B) { func BenchmarkParseReplyStatus(b *testing.B) {

View File

@ -4,7 +4,7 @@ import (
"sync" "sync"
"sync/atomic" "sync/atomic"
"gopkg.in/redis.v3/internal/pool" "gopkg.in/redis.v4/internal/pool"
) )
// Pipeline implements pipelining as described in // Pipeline implements pipelining as described in

View File

@ -7,7 +7,7 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"gopkg.in/redis.v3" "gopkg.in/redis.v4"
) )
var _ = Describe("Pipelining", func() { var _ = Describe("Pipelining", func() {

View File

@ -4,8 +4,8 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"gopkg.in/redis.v3" "gopkg.in/redis.v4"
"gopkg.in/redis.v3/internal/pool" "gopkg.in/redis.v4/internal/pool"
) )
var _ = Describe("pool", func() { var _ = Describe("pool", func() {

View File

@ -5,7 +5,7 @@ import (
"net" "net"
"time" "time"
"gopkg.in/redis.v3/internal/pool" "gopkg.in/redis.v4/internal/pool"
) )
var receiveMessageTimeout = 5 * time.Second var receiveMessageTimeout = 5 * time.Second

View File

@ -9,7 +9,7 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"gopkg.in/redis.v3" "gopkg.in/redis.v4"
) )
var _ = Describe("PubSub", func() { var _ = Describe("PubSub", func() {

View File

@ -11,8 +11,8 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"gopkg.in/redis.v3" "gopkg.in/redis.v4"
"gopkg.in/redis.v3/internal/pool" "gopkg.in/redis.v4/internal/pool"
) )
var _ = Describe("races", func() { var _ = Describe("races", func() {

View File

@ -1,11 +1,11 @@
package redis // import "gopkg.in/redis.v3" package redis // import "gopkg.in/redis.v4"
import ( import (
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"log" "log"
"gopkg.in/redis.v3/internal/pool" "gopkg.in/redis.v4/internal/pool"
) )
// Deprecated. Use SetLogger instead. // Deprecated. Use SetLogger instead.

View File

@ -7,7 +7,7 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"gopkg.in/redis.v3" "gopkg.in/redis.v4"
) )
var _ = Describe("Client", func() { var _ = Describe("Client", func() {

View File

@ -6,9 +6,9 @@ import (
"sync" "sync"
"time" "time"
"gopkg.in/redis.v3/internal/consistenthash" "gopkg.in/redis.v4/internal/consistenthash"
"gopkg.in/redis.v3/internal/hashtag" "gopkg.in/redis.v4/internal/hashtag"
"gopkg.in/redis.v3/internal/pool" "gopkg.in/redis.v4/internal/pool"
) )
var ( var (

View File

@ -8,7 +8,7 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"gopkg.in/redis.v3" "gopkg.in/redis.v4"
) )
var _ = Describe("Redis ring", func() { var _ = Describe("Redis ring", func() {

View File

@ -8,7 +8,7 @@ import (
"sync" "sync"
"time" "time"
"gopkg.in/redis.v3/internal/pool" "gopkg.in/redis.v4/internal/pool"
) )
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------

View File

@ -4,7 +4,7 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"gopkg.in/redis.v3" "gopkg.in/redis.v4"
) )
var _ = Describe("Sentinel", func() { var _ = Describe("Sentinel", func() {

2
tx.go
View File

@ -4,7 +4,7 @@ import (
"errors" "errors"
"fmt" "fmt"
"gopkg.in/redis.v3/internal/pool" "gopkg.in/redis.v4/internal/pool"
) )
var errDiscard = errors.New("redis: Discard can be used only inside Exec") var errDiscard = errors.New("redis: Discard can be used only inside Exec")

View File

@ -7,7 +7,7 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"gopkg.in/redis.v3" "gopkg.in/redis.v4"
) )
var _ = Describe("Tx", func() { var _ = Describe("Tx", func() {