diff --git a/README.md b/README.md index 1b1543b1..bb2ebcca 100644 --- a/README.md +++ b/README.md @@ -63,13 +63,13 @@ module: go mod init github.com/my/repo ``` -And then install go-redis/v8 (note _v8_ in the import; omitting it is a popular mistake): +If you are using **Redis 6**, install go-redis/**v8**: ```shell go get github.com/go-redis/redis/v8 ``` -If you need **Redis 7** support, install go-redis/v9: +If you are using **Redis 7**, install **go-redis/v9**: ```shell go get github.com/go-redis/redis/v9 diff --git a/bench_decode_test.go b/bench_decode_test.go index 753130e2..fc929e52 100644 --- a/bench_decode_test.go +++ b/bench_decode_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "github.com/go-redis/redis/v8/internal/proto" + "github.com/go-redis/redis/v9/internal/proto" ) var ctx = context.TODO() diff --git a/bench_test.go b/bench_test.go index df43d890..4af51842 100644 --- a/bench_test.go +++ b/bench_test.go @@ -10,7 +10,7 @@ import ( "testing" "time" - "github.com/go-redis/redis/v8" + "github.com/go-redis/redis/v9" ) func benchmarkRedisClient(ctx context.Context, poolSize int) *redis.Client { diff --git a/cluster.go b/cluster.go index 27dd31b3..b3e7a8cd 100644 --- a/cluster.go +++ b/cluster.go @@ -12,11 +12,11 @@ import ( "sync/atomic" "time" - "github.com/go-redis/redis/v8/internal" - "github.com/go-redis/redis/v8/internal/hashtag" - "github.com/go-redis/redis/v8/internal/pool" - "github.com/go-redis/redis/v8/internal/proto" - "github.com/go-redis/redis/v8/internal/rand" + "github.com/go-redis/redis/v9/internal" + "github.com/go-redis/redis/v9/internal/hashtag" + "github.com/go-redis/redis/v9/internal/pool" + "github.com/go-redis/redis/v9/internal/proto" + "github.com/go-redis/redis/v9/internal/rand" ) var errClusterNoNodes = fmt.Errorf("redis: cluster has no nodes") diff --git a/cluster_test.go b/cluster_test.go index 2d2021cf..59fcef2f 100644 --- a/cluster_test.go +++ b/cluster_test.go @@ -12,8 +12,8 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "github.com/go-redis/redis/v8" - "github.com/go-redis/redis/v8/internal/hashtag" + "github.com/go-redis/redis/v9" + "github.com/go-redis/redis/v9/internal/hashtag" ) type clusterScenario struct { diff --git a/command.go b/command.go index 51e70388..ee1e8d17 100644 --- a/command.go +++ b/command.go @@ -7,10 +7,10 @@ import ( "strconv" "time" - "github.com/go-redis/redis/v8/internal" - "github.com/go-redis/redis/v8/internal/hscan" - "github.com/go-redis/redis/v8/internal/proto" - "github.com/go-redis/redis/v8/internal/util" + "github.com/go-redis/redis/v9/internal" + "github.com/go-redis/redis/v9/internal/hscan" + "github.com/go-redis/redis/v9/internal/proto" + "github.com/go-redis/redis/v9/internal/util" ) type Cmder interface { diff --git a/command_test.go b/command_test.go index 775987fc..9af156c8 100644 --- a/command_test.go +++ b/command_test.go @@ -4,7 +4,7 @@ import ( "errors" "time" - "github.com/go-redis/redis/v8" + "github.com/go-redis/redis/v9" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/commands.go b/commands.go index 60997a8f..beb3af2d 100644 --- a/commands.go +++ b/commands.go @@ -6,7 +6,7 @@ import ( "io" "time" - "github.com/go-redis/redis/v8/internal" + "github.com/go-redis/redis/v9/internal" ) // KeepTTL is a Redis KEEPTTL option to keep existing TTL, it requires your redis-server version >= 6.0, diff --git a/commands_test.go b/commands_test.go index a7347e67..fd5f9c75 100644 --- a/commands_test.go +++ b/commands_test.go @@ -10,8 +10,8 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "github.com/go-redis/redis/v8" - "github.com/go-redis/redis/v8/internal/proto" + "github.com/go-redis/redis/v9" + "github.com/go-redis/redis/v9/internal/proto" ) var _ = Describe("Commands", func() { diff --git a/error.go b/error.go index a6567eff..32328511 100644 --- a/error.go +++ b/error.go @@ -6,8 +6,8 @@ import ( "net" "strings" - "github.com/go-redis/redis/v8/internal/pool" - "github.com/go-redis/redis/v8/internal/proto" + "github.com/go-redis/redis/v9/internal/pool" + "github.com/go-redis/redis/v9/internal/proto" ) // ErrClosed performs any operation on the closed client will return this error. diff --git a/example/del-keys-without-ttl/go.mod b/example/del-keys-without-ttl/go.mod index 4421e29f..435f636e 100644 --- a/example/del-keys-without-ttl/go.mod +++ b/example/del-keys-without-ttl/go.mod @@ -2,6 +2,6 @@ module github.com/go-redis/redis/example/del-keys-without-ttl go 1.14 -replace github.com/go-redis/redis/v8 => ../.. +replace github.com/go-redis/redis/v9 => ../.. -require github.com/go-redis/redis/v8 v8.11.5 +require github.com/go-redis/redis/v9 v8.11.5 diff --git a/example/del-keys-without-ttl/main.go b/example/del-keys-without-ttl/main.go index 2331ed10..8ac2a078 100644 --- a/example/del-keys-without-ttl/main.go +++ b/example/del-keys-without-ttl/main.go @@ -5,7 +5,7 @@ import ( "fmt" "sync" - "github.com/go-redis/redis/v8" + "github.com/go-redis/redis/v9" ) func main() { diff --git a/example/hll/go.mod b/example/hll/go.mod index 33d76306..42800bcd 100644 --- a/example/hll/go.mod +++ b/example/hll/go.mod @@ -2,6 +2,6 @@ module github.com/go-redis/redis/example/hll go 1.14 -replace github.com/go-redis/redis/v8 => ../.. +replace github.com/go-redis/redis/v9 => ../.. -require github.com/go-redis/redis/v8 v8.11.5 +require github.com/go-redis/redis/v9 v8.11.5 diff --git a/example/hll/main.go b/example/hll/main.go index 60a957e9..db9d2673 100644 --- a/example/hll/main.go +++ b/example/hll/main.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/go-redis/redis/v8" + "github.com/go-redis/redis/v9" ) func main() { diff --git a/example/lua-scripting/go.mod b/example/lua-scripting/go.mod index be4ecab2..d30d8328 100644 --- a/example/lua-scripting/go.mod +++ b/example/lua-scripting/go.mod @@ -2,6 +2,6 @@ module github.com/go-redis/redis/example/redis-bloom go 1.14 -replace github.com/go-redis/redis/v8 => ../.. +replace github.com/go-redis/redis/v9 => ../.. -require github.com/go-redis/redis/v8 v8.11.5 +require github.com/go-redis/redis/v9 v8.11.5 diff --git a/example/lua-scripting/main.go b/example/lua-scripting/main.go index 04cb44d9..e86fd836 100644 --- a/example/lua-scripting/main.go +++ b/example/lua-scripting/main.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/go-redis/redis/v8" + "github.com/go-redis/redis/v9" ) func main() { diff --git a/example/otel/go.mod b/example/otel/go.mod index afe12ab8..1203d9e9 100644 --- a/example/otel/go.mod +++ b/example/otel/go.mod @@ -2,15 +2,13 @@ module github.com/go-redis/redis/example/otel go 1.14 -replace github.com/go-redis/redis/v8 => ../.. +replace github.com/go-redis/redis/v9 => ../.. -replace github.com/go-redis/redis/extra/redisotel/v8 => ../../extra/redisotel +replace github.com/go-redis/redis/extra/redisotel/v9 => ../../extra/redisotel -replace github.com/go-redis/redis/extra/rediscmd/v8 => ../../extra/rediscmd +replace github.com/go-redis/redis/extra/rediscmd/v9 => ../../extra/rediscmd require ( - github.com/go-redis/redis/extra/redisotel/v8 v8.11.5 - github.com/go-redis/redis/v8 v8.11.5 github.com/uptrace/opentelemetry-go-extra/otelplay v0.1.10 go.opentelemetry.io/otel v1.5.0 go.opentelemetry.io/otel/exporters/jaeger v1.5.0 // indirect diff --git a/example/otel/main.go b/example/otel/main.go index 952b24b7..75033ebf 100644 --- a/example/otel/main.go +++ b/example/otel/main.go @@ -10,8 +10,8 @@ import ( "go.opentelemetry.io/otel/codes" semconv "go.opentelemetry.io/otel/semconv/v1.7.0" - "github.com/go-redis/redis/extra/redisotel/v8" - "github.com/go-redis/redis/v8" + "github.com/go-redis/redis/extra/redisotel/v9" + "github.com/go-redis/redis/v9" ) var tracer = otel.Tracer("redisexample") diff --git a/example/redis-bloom/go.mod b/example/redis-bloom/go.mod index be4ecab2..d30d8328 100644 --- a/example/redis-bloom/go.mod +++ b/example/redis-bloom/go.mod @@ -2,6 +2,6 @@ module github.com/go-redis/redis/example/redis-bloom go 1.14 -replace github.com/go-redis/redis/v8 => ../.. +replace github.com/go-redis/redis/v9 => ../.. -require github.com/go-redis/redis/v8 v8.11.5 +require github.com/go-redis/redis/v9 v8.11.5 diff --git a/example/redis-bloom/main.go b/example/redis-bloom/main.go index c2ae7c08..452026eb 100644 --- a/example/redis-bloom/main.go +++ b/example/redis-bloom/main.go @@ -5,7 +5,7 @@ import ( "fmt" "math/rand" - "github.com/go-redis/redis/v8" + "github.com/go-redis/redis/v9" ) func main() { diff --git a/example/scan-struct/go.mod b/example/scan-struct/go.mod index 8c42bef3..40a29309 100644 --- a/example/scan-struct/go.mod +++ b/example/scan-struct/go.mod @@ -2,9 +2,9 @@ module github.com/go-redis/redis/example/scan-struct go 1.14 -replace github.com/go-redis/redis/v8 => ../.. +replace github.com/go-redis/redis/v9 => ../.. require ( github.com/davecgh/go-spew v1.1.1 - github.com/go-redis/redis/v8 v8.11.5 + github.com/go-redis/redis/v9 v8.11.5 ) diff --git a/example/scan-struct/main.go b/example/scan-struct/main.go index aee7ef71..d53b6548 100644 --- a/example/scan-struct/main.go +++ b/example/scan-struct/main.go @@ -5,7 +5,7 @@ import ( "github.com/davecgh/go-spew/spew" - "github.com/go-redis/redis/v8" + "github.com/go-redis/redis/v9" ) type Model struct { diff --git a/example_instrumentation_test.go b/example_instrumentation_test.go index d66edce2..639f9f0e 100644 --- a/example_instrumentation_test.go +++ b/example_instrumentation_test.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/go-redis/redis/v8" + "github.com/go-redis/redis/v9" ) type redisHook struct{} diff --git a/example_test.go b/example_test.go index 75b5cbbb..3e05f21b 100644 --- a/example_test.go +++ b/example_test.go @@ -7,7 +7,7 @@ import ( "sync" "time" - "github.com/go-redis/redis/v8" + "github.com/go-redis/redis/v9" ) var ( diff --git a/export_test.go b/export_test.go index 64ba35f5..5e6d7466 100644 --- a/export_test.go +++ b/export_test.go @@ -6,9 +6,9 @@ import ( "net" "strings" - "github.com/go-redis/redis/v8/internal" - "github.com/go-redis/redis/v8/internal/hashtag" - "github.com/go-redis/redis/v8/internal/pool" + "github.com/go-redis/redis/v9/internal" + "github.com/go-redis/redis/v9/internal/hashtag" + "github.com/go-redis/redis/v9/internal/pool" ) func (c *baseClient) Pool() pool.Pooler { diff --git a/extra/rediscensus/go.mod b/extra/rediscensus/go.mod index 8f82a0c8..1a7f8080 100644 --- a/extra/rediscensus/go.mod +++ b/extra/rediscensus/go.mod @@ -1,14 +1,12 @@ -module github.com/go-redis/redis/extra/rediscensus/v8 +module github.com/go-redis/redis/extra/rediscensus/v9 go 1.15 -replace github.com/go-redis/redis/v8 => ../.. +replace github.com/go-redis/redis/v9 => ../.. -replace github.com/go-redis/redis/extra/rediscmd/v8 => ../rediscmd +replace github.com/go-redis/redis/extra/rediscmd/v9 => ../rediscmd require ( - github.com/go-redis/redis/extra/rediscmd/v8 v8.11.5 - github.com/go-redis/redis/v8 v8.11.5 github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect go.opencensus.io v0.23.0 ) diff --git a/extra/rediscensus/rediscensus.go b/extra/rediscensus/rediscensus.go index 9af094e9..c92e41b1 100644 --- a/extra/rediscensus/rediscensus.go +++ b/extra/rediscensus/rediscensus.go @@ -5,8 +5,8 @@ import ( "go.opencensus.io/trace" - "github.com/go-redis/redis/extra/rediscmd/v8" - "github.com/go-redis/redis/v8" + "github.com/go-redis/redis/extra/rediscmd/v9" + "github.com/go-redis/redis/v9" ) type TracingHook struct{} diff --git a/extra/rediscmd/go.mod b/extra/rediscmd/go.mod index 1bc5bef4..f600c19c 100644 --- a/extra/rediscmd/go.mod +++ b/extra/rediscmd/go.mod @@ -1,11 +1,10 @@ -module github.com/go-redis/redis/extra/rediscmd/v8 +module github.com/go-redis/redis/extra/rediscmd/v9 go 1.15 -replace github.com/go-redis/redis/v8 => ../.. +replace github.com/go-redis/redis/v9 => ../.. require ( - github.com/go-redis/redis/v8 v8.11.5 github.com/onsi/ginkgo v1.16.5 github.com/onsi/gomega v1.18.1 ) diff --git a/extra/rediscmd/rediscmd.go b/extra/rediscmd/rediscmd.go index 12ea39fc..e47a158a 100644 --- a/extra/rediscmd/rediscmd.go +++ b/extra/rediscmd/rediscmd.go @@ -7,7 +7,7 @@ import ( "strings" "time" - "github.com/go-redis/redis/v8" + "github.com/go-redis/redis/v9" ) func CmdString(cmd redis.Cmder) string { diff --git a/extra/redisotel/README.md b/extra/redisotel/README.md index fae4032f..66c33c9c 100644 --- a/extra/redisotel/README.md +++ b/extra/redisotel/README.md @@ -3,7 +3,7 @@ ## Installation ```bash -go get github.com/go-redis/redis/extra/redisotel/v8 +go get github.com/go-redis/redis/extra/redisotel/v9 ``` ## Usage @@ -12,8 +12,8 @@ Tracing is enabled by adding a hook: ```go import ( - "github.com/go-redis/redis/v8" - "github.com/go-redis/redis/extra/redisotel" + "github.com/go-redis/redis/v9" + "github.com/go-redis/redis/extra/redisotel/v9" ) rdb := rdb.NewClient(&rdb.Options{...}) diff --git a/extra/redisotel/go.mod b/extra/redisotel/go.mod index 144cf9c5..fe1a5096 100644 --- a/extra/redisotel/go.mod +++ b/extra/redisotel/go.mod @@ -1,14 +1,12 @@ -module github.com/go-redis/redis/extra/redisotel/v8 +module github.com/go-redis/redis/extra/redisotel/v9 go 1.15 -replace github.com/go-redis/redis/v8 => ../.. +replace github.com/go-redis/redis/v9 => ../.. -replace github.com/go-redis/redis/extra/rediscmd/v8 => ../rediscmd +replace github.com/go-redis/redis/extra/rediscmd/v9 => ../rediscmd require ( - github.com/go-redis/redis/extra/rediscmd/v8 v8.11.5 - github.com/go-redis/redis/v8 v8.11.5 go.opentelemetry.io/otel v1.5.0 go.opentelemetry.io/otel/sdk v1.4.1 go.opentelemetry.io/otel/trace v1.5.0 diff --git a/extra/redisotel/redisotel.go b/extra/redisotel/redisotel.go index 70157806..53f7ec3a 100644 --- a/extra/redisotel/redisotel.go +++ b/extra/redisotel/redisotel.go @@ -9,8 +9,8 @@ import ( semconv "go.opentelemetry.io/otel/semconv/v1.7.0" "go.opentelemetry.io/otel/trace" - "github.com/go-redis/redis/extra/rediscmd/v8" - "github.com/go-redis/redis/v8" + "github.com/go-redis/redis/extra/rediscmd/v9" + "github.com/go-redis/redis/v9" ) const ( diff --git a/extra/redisotel/redisotel_test.go b/extra/redisotel/redisotel_test.go index 883dcf17..4de0e713 100644 --- a/extra/redisotel/redisotel_test.go +++ b/extra/redisotel/redisotel_test.go @@ -10,8 +10,8 @@ import ( sdktrace "go.opentelemetry.io/otel/sdk/trace" "go.opentelemetry.io/otel/trace" - "github.com/go-redis/redis/extra/redisotel/v8" - "github.com/go-redis/redis/v8" + "github.com/go-redis/redis/extra/redisotel/v9" + "github.com/go-redis/redis/v9" ) func TestNew(t *testing.T) { diff --git a/fuzz/fuzz.go b/fuzz/fuzz.go index 3225d245..b689c759 100644 --- a/fuzz/fuzz.go +++ b/fuzz/fuzz.go @@ -7,7 +7,7 @@ import ( "context" "time" - "github.com/go-redis/redis/v8" + "github.com/go-redis/redis/v9" ) var ( diff --git a/go.mod b/go.mod index 36eb8010..6d5aed3f 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/go-redis/redis/v8 +module github.com/go-redis/redis/v9 go 1.17 diff --git a/internal/hashtag/hashtag.go b/internal/hashtag/hashtag.go index b3a4f211..dd3c4cb8 100644 --- a/internal/hashtag/hashtag.go +++ b/internal/hashtag/hashtag.go @@ -3,7 +3,7 @@ package hashtag import ( "strings" - "github.com/go-redis/redis/v8/internal/rand" + "github.com/go-redis/redis/v9/internal/rand" ) const slotNumber = 16384 diff --git a/internal/hashtag/hashtag_test.go b/internal/hashtag/hashtag_test.go index c0b6396f..bab55d03 100644 --- a/internal/hashtag/hashtag_test.go +++ b/internal/hashtag/hashtag_test.go @@ -6,7 +6,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "github.com/go-redis/redis/v8/internal/rand" + "github.com/go-redis/redis/v9/internal/rand" ) func TestGinkgoSuite(t *testing.T) { diff --git a/internal/internal.go b/internal/internal.go index 4a59c599..5b6474e8 100644 --- a/internal/internal.go +++ b/internal/internal.go @@ -3,7 +3,7 @@ package internal import ( "time" - "github.com/go-redis/redis/v8/internal/rand" + "github.com/go-redis/redis/v9/internal/rand" ) func RetryBackoff(retry int, minBackoff, maxBackoff time.Duration) time.Duration { diff --git a/internal/pool/bench_test.go b/internal/pool/bench_test.go index dec5d3f2..0d8dbbdf 100644 --- a/internal/pool/bench_test.go +++ b/internal/pool/bench_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/go-redis/redis/v8/internal/pool" + "github.com/go-redis/redis/v9/internal/pool" ) type poolGetPutBenchmark struct { diff --git a/internal/pool/conn.go b/internal/pool/conn.go index 65258ec4..a760be27 100644 --- a/internal/pool/conn.go +++ b/internal/pool/conn.go @@ -7,7 +7,7 @@ import ( "sync/atomic" "time" - "github.com/go-redis/redis/v8/internal/proto" + "github.com/go-redis/redis/v9/internal/proto" ) var noDeadline = time.Time{} diff --git a/internal/pool/pool.go b/internal/pool/pool.go index 3a6ecb27..42fed8e2 100644 --- a/internal/pool/pool.go +++ b/internal/pool/pool.go @@ -8,7 +8,7 @@ import ( "sync/atomic" "time" - "github.com/go-redis/redis/v8/internal" + "github.com/go-redis/redis/v9/internal" ) var ( diff --git a/internal/pool/pool_test.go b/internal/pool/pool_test.go index d0fbfe19..e1e89f44 100644 --- a/internal/pool/pool_test.go +++ b/internal/pool/pool_test.go @@ -10,7 +10,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "github.com/go-redis/redis/v8/internal/pool" + "github.com/go-redis/redis/v9/internal/pool" ) var _ = Describe("ConnPool", func() { diff --git a/internal/proto/reader.go b/internal/proto/reader.go index ac24f28a..1cf161a5 100644 --- a/internal/proto/reader.go +++ b/internal/proto/reader.go @@ -9,7 +9,7 @@ import ( "math/big" "strconv" - "github.com/go-redis/redis/v8/internal/util" + "github.com/go-redis/redis/v9/internal/util" ) // redis resp protocol data type. diff --git a/internal/proto/reader_test.go b/internal/proto/reader_test.go index 9881047b..ae21d463 100644 --- a/internal/proto/reader_test.go +++ b/internal/proto/reader_test.go @@ -5,7 +5,7 @@ import ( "io" "testing" - "github.com/go-redis/redis/v8/internal/proto" + "github.com/go-redis/redis/v9/internal/proto" ) func BenchmarkReader_ParseReply_Status(b *testing.B) { diff --git a/internal/proto/scan.go b/internal/proto/scan.go index 072b8e62..576120c5 100644 --- a/internal/proto/scan.go +++ b/internal/proto/scan.go @@ -7,7 +7,7 @@ import ( "reflect" "time" - "github.com/go-redis/redis/v8/internal/util" + "github.com/go-redis/redis/v9/internal/util" ) // Scan parses bytes `b` to `v` with appropriate type. diff --git a/internal/proto/scan_test.go b/internal/proto/scan_test.go index 55df550b..b3bbc515 100644 --- a/internal/proto/scan_test.go +++ b/internal/proto/scan_test.go @@ -6,7 +6,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "github.com/go-redis/redis/v8/internal/proto" + "github.com/go-redis/redis/v9/internal/proto" ) type testScanSliceStruct struct { diff --git a/internal/proto/writer.go b/internal/proto/writer.go index c674d44b..15e15989 100644 --- a/internal/proto/writer.go +++ b/internal/proto/writer.go @@ -8,7 +8,7 @@ import ( "strconv" "time" - "github.com/go-redis/redis/v8/internal/util" + "github.com/go-redis/redis/v9/internal/util" ) type writer interface { diff --git a/internal/proto/writer_test.go b/internal/proto/writer_test.go index 91efa017..d71f4454 100644 --- a/internal/proto/writer_test.go +++ b/internal/proto/writer_test.go @@ -11,7 +11,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "github.com/go-redis/redis/v8/internal/proto" + "github.com/go-redis/redis/v9/internal/proto" ) type MyType struct{} diff --git a/internal/util.go b/internal/util.go index e34a7f03..756c0b55 100644 --- a/internal/util.go +++ b/internal/util.go @@ -4,7 +4,7 @@ import ( "context" "time" - "github.com/go-redis/redis/v8/internal/util" + "github.com/go-redis/redis/v9/internal/util" ) func Sleep(ctx context.Context, dur time.Duration) error { diff --git a/iterator_test.go b/iterator_test.go index 68c8b77e..ff1d8431 100644 --- a/iterator_test.go +++ b/iterator_test.go @@ -6,7 +6,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "github.com/go-redis/redis/v8" + "github.com/go-redis/redis/v9" ) var _ = Describe("ScanIterator", func() { diff --git a/main_test.go b/main_test.go index c52140df..7a80e9d2 100644 --- a/main_test.go +++ b/main_test.go @@ -15,7 +15,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "github.com/go-redis/redis/v8" + "github.com/go-redis/redis/v9" ) const ( diff --git a/options.go b/options.go index bea7efbf..99cfddbb 100644 --- a/options.go +++ b/options.go @@ -13,7 +13,7 @@ import ( "strings" "time" - "github.com/go-redis/redis/v8/internal/pool" + "github.com/go-redis/redis/v9/internal/pool" ) // Limiter is the interface of a rate limiter or a circuit breaker. diff --git a/pipeline_test.go b/pipeline_test.go index f24114d7..b6fc5bb9 100644 --- a/pipeline_test.go +++ b/pipeline_test.go @@ -6,7 +6,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "github.com/go-redis/redis/v8" + "github.com/go-redis/redis/v9" ) var _ = Describe("pipelining", func() { diff --git a/pool_test.go b/pool_test.go index 7be2ced7..a45b3de4 100644 --- a/pool_test.go +++ b/pool_test.go @@ -7,7 +7,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "github.com/go-redis/redis/v8" + "github.com/go-redis/redis/v9" ) var _ = Describe("pool", func() { diff --git a/pubsub.go b/pubsub.go index 3df2d65d..75e5097b 100644 --- a/pubsub.go +++ b/pubsub.go @@ -7,9 +7,9 @@ import ( "sync" "time" - "github.com/go-redis/redis/v8/internal" - "github.com/go-redis/redis/v8/internal/pool" - "github.com/go-redis/redis/v8/internal/proto" + "github.com/go-redis/redis/v9/internal" + "github.com/go-redis/redis/v9/internal/pool" + "github.com/go-redis/redis/v9/internal/proto" ) // PubSub implements Pub/Sub commands as described in diff --git a/pubsub_test.go b/pubsub_test.go index 5776bbde..6777ec67 100644 --- a/pubsub_test.go +++ b/pubsub_test.go @@ -9,7 +9,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "github.com/go-redis/redis/v8" + "github.com/go-redis/redis/v9" ) var _ = Describe("PubSub", func() { diff --git a/race_test.go b/race_test.go index 34699d13..6e4ab441 100644 --- a/race_test.go +++ b/race_test.go @@ -13,7 +13,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "github.com/go-redis/redis/v8" + "github.com/go-redis/redis/v9" ) var _ = Describe("races", func() { diff --git a/redis.go b/redis.go index 8320669e..7248057d 100644 --- a/redis.go +++ b/redis.go @@ -7,9 +7,9 @@ import ( "sync/atomic" "time" - "github.com/go-redis/redis/v8/internal" - "github.com/go-redis/redis/v8/internal/pool" - "github.com/go-redis/redis/v8/internal/proto" + "github.com/go-redis/redis/v9/internal" + "github.com/go-redis/redis/v9/internal/pool" + "github.com/go-redis/redis/v9/internal/proto" ) // Nil reply returned by Redis when key does not exist. diff --git a/redis_test.go b/redis_test.go index 2215228f..af721fe7 100644 --- a/redis_test.go +++ b/redis_test.go @@ -11,7 +11,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "github.com/go-redis/redis/v8" + "github.com/go-redis/redis/v9" ) type redisHookError struct { diff --git a/ring.go b/ring.go index 8309cbe4..21a92649 100644 --- a/ring.go +++ b/ring.go @@ -14,10 +14,10 @@ import ( "github.com/cespare/xxhash/v2" rendezvous "github.com/dgryski/go-rendezvous" //nolint - "github.com/go-redis/redis/v8/internal" - "github.com/go-redis/redis/v8/internal/hashtag" - "github.com/go-redis/redis/v8/internal/pool" - "github.com/go-redis/redis/v8/internal/rand" + "github.com/go-redis/redis/v9/internal" + "github.com/go-redis/redis/v9/internal/hashtag" + "github.com/go-redis/redis/v9/internal/pool" + "github.com/go-redis/redis/v9/internal/rand" ) var errRingShardsDown = errors.New("redis: all ring shards are down") diff --git a/ring_test.go b/ring_test.go index b0705c5b..50b13ffd 100644 --- a/ring_test.go +++ b/ring_test.go @@ -12,7 +12,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "github.com/go-redis/redis/v8" + "github.com/go-redis/redis/v9" ) var _ = Describe("Redis Ring", func() { diff --git a/sentinel.go b/sentinel.go index e133d7a0..5cec0c53 100644 --- a/sentinel.go +++ b/sentinel.go @@ -9,9 +9,9 @@ import ( "sync" "time" - "github.com/go-redis/redis/v8/internal" - "github.com/go-redis/redis/v8/internal/pool" - "github.com/go-redis/redis/v8/internal/rand" + "github.com/go-redis/redis/v9/internal" + "github.com/go-redis/redis/v9/internal/pool" + "github.com/go-redis/redis/v9/internal/rand" ) //------------------------------------------------------------------------------ diff --git a/sentinel_test.go b/sentinel_test.go index d0fa9c95..ecde161f 100644 --- a/sentinel_test.go +++ b/sentinel_test.go @@ -6,7 +6,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "github.com/go-redis/redis/v8" + "github.com/go-redis/redis/v9" ) var _ = Describe("Sentinel", func() { diff --git a/tx.go b/tx.go index 8c9d8720..079149fb 100644 --- a/tx.go +++ b/tx.go @@ -3,8 +3,8 @@ package redis import ( "context" - "github.com/go-redis/redis/v8/internal/pool" - "github.com/go-redis/redis/v8/internal/proto" + "github.com/go-redis/redis/v9/internal/pool" + "github.com/go-redis/redis/v9/internal/proto" ) // TxFailedErr transaction redis failed. diff --git a/tx_test.go b/tx_test.go index 030a56cc..ed55518b 100644 --- a/tx_test.go +++ b/tx_test.go @@ -8,7 +8,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "github.com/go-redis/redis/v8" + "github.com/go-redis/redis/v9" ) var _ = Describe("Tx", func() { diff --git a/universal_test.go b/universal_test.go index 7491a1d1..15cb7c81 100644 --- a/universal_test.go +++ b/universal_test.go @@ -4,7 +4,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "github.com/go-redis/redis/v8" + "github.com/go-redis/redis/v9" ) var _ = Describe("UniversalClient", func() {