From a18fad5bd311a93a5348ed11ff5d028b82df039a Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Sat, 4 Jun 2022 17:39:21 +0300 Subject: [PATCH] chore: v9 --- README.md | 4 ++-- bench_decode_test.go | 2 +- bench_test.go | 2 +- cluster.go | 10 +++++----- cluster_test.go | 4 ++-- command.go | 8 ++++---- command_test.go | 2 +- commands.go | 2 +- commands_test.go | 4 ++-- error.go | 4 ++-- example/del-keys-without-ttl/go.mod | 4 ++-- example/del-keys-without-ttl/main.go | 2 +- example/hll/go.mod | 4 ++-- example/hll/main.go | 2 +- example/lua-scripting/go.mod | 4 ++-- example/lua-scripting/main.go | 2 +- example/otel/go.mod | 8 +++----- example/otel/main.go | 4 ++-- example/redis-bloom/go.mod | 4 ++-- example/redis-bloom/main.go | 2 +- example/scan-struct/go.mod | 4 ++-- example/scan-struct/main.go | 2 +- example_instrumentation_test.go | 2 +- example_test.go | 2 +- export_test.go | 6 +++--- extra/rediscensus/go.mod | 8 +++----- extra/rediscensus/rediscensus.go | 4 ++-- extra/rediscmd/go.mod | 5 ++--- extra/rediscmd/rediscmd.go | 2 +- extra/redisotel/README.md | 6 +++--- extra/redisotel/go.mod | 8 +++----- extra/redisotel/redisotel.go | 4 ++-- extra/redisotel/redisotel_test.go | 4 ++-- fuzz/fuzz.go | 2 +- go.mod | 2 +- internal/hashtag/hashtag.go | 2 +- internal/hashtag/hashtag_test.go | 2 +- internal/internal.go | 2 +- internal/pool/bench_test.go | 2 +- internal/pool/conn.go | 2 +- internal/pool/pool.go | 2 +- internal/pool/pool_test.go | 2 +- internal/proto/reader.go | 2 +- internal/proto/reader_test.go | 2 +- internal/proto/scan.go | 2 +- internal/proto/scan_test.go | 2 +- internal/proto/writer.go | 2 +- internal/proto/writer_test.go | 2 +- internal/util.go | 2 +- iterator_test.go | 2 +- main_test.go | 2 +- options.go | 2 +- pipeline_test.go | 2 +- pool_test.go | 2 +- pubsub.go | 6 +++--- pubsub_test.go | 2 +- race_test.go | 2 +- redis.go | 6 +++--- redis_test.go | 2 +- ring.go | 8 ++++---- ring_test.go | 2 +- sentinel.go | 6 +++--- sentinel_test.go | 2 +- tx.go | 4 ++-- tx_test.go | 2 +- universal_test.go | 2 +- 66 files changed, 107 insertions(+), 114 deletions(-) diff --git a/README.md b/README.md index 1b1543b..bb2ebcc 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 753130e..fc929e5 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 df43d89..4af5184 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 27dd31b..b3e7a8c 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 2d2021c..59fcef2 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 51e7038..ee1e8d1 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 775987f..9af156c 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 60997a8..beb3af2 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 a7347e6..fd5f9c7 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 a6567ef..3232851 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 4421e29..435f636 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 2331ed1..8ac2a07 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 33d7630..42800bc 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 60a957e..db9d267 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 be4ecab..d30d832 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 04cb44d..e86fd83 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 afe12ab..1203d9e 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 952b24b..75033eb 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 be4ecab..d30d832 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 c2ae7c0..452026e 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 8c42bef..40a2930 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 aee7ef7..d53b654 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 d66edce..639f9f0 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 75b5cbb..3e05f21 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 64ba35f..5e6d746 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 8f82a0c..1a7f808 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 9af094e..c92e41b 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 1bc5bef..f600c19 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 12ea39f..e47a158 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 fae4032..66c33c9 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 144cf9c..fe1a509 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 7015780..53f7ec3 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 883dcf1..4de0e71 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 3225d24..b689c75 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 36eb801..6d5aed3 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 b3a4f21..dd3c4cb 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 c0b6396..bab55d0 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 4a59c59..5b6474e 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 dec5d3f..0d8dbbd 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 65258ec..a760be2 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 3a6ecb2..42fed8e 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 d0fbfe1..e1e89f4 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 ac24f28..1cf161a 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 9881047..ae21d46 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 072b8e6..576120c 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 55df550..b3bbc51 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 c674d44..15e1598 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 91efa01..d71f445 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 e34a7f0..756c0b5 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 68c8b77..ff1d843 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 c52140d..7a80e9d 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 bea7efb..99cfddb 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 f24114d..b6fc5bb 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 7be2ced..a45b3de 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 3df2d65..75e5097 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 5776bbd..6777ec6 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 34699d1..6e4ab44 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 8320669..7248057 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 2215228..af721fe 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 8309cbe..21a9264 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 b0705c5..50b13ff 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 e133d7a..5cec0c5 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 d0fa9c9..ecde161 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 8c9d872..079149f 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 030a56c..ed55518 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 7491a1d..15cb7c8 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() {