Skip to content

Commit 519bcc2

Browse files
authored
Merge branch 'master' into add-conn-pool-wait-stats
2 parents 66f8cd4 + 531f068 commit 519bcc2

File tree

20 files changed

+49
-21
lines changed

20 files changed

+49
-21
lines changed

commands_test.go

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,17 @@ var _ = Describe("Commands", func() {
291291
}()
292292
pipe.ClientSetInfo(ctx, libInfo)
293293
}).To(Panic())
294+
// Test setting the default options for libName, libName suffix and libVer
295+
clientInfo := client.ClientInfo(ctx).Val()
296+
Expect(clientInfo.LibName).To(ContainSubstring("go-redis(go-redis,"))
297+
// Test setting the libName suffix in options
298+
opt := redisOptions()
299+
opt.IdentitySuffix = "suffix"
300+
client2 := redis.NewClient(opt)
301+
defer client2.Close()
302+
clientInfo = client2.ClientInfo(ctx).Val()
303+
Expect(clientInfo.LibName).To(ContainSubstring("go-redis(suffix,"))
304+
294305
})
295306

296307
It("should ConfigGet", func() {
@@ -3722,28 +3733,28 @@ var _ = Describe("Commands", func() {
37223733
It("should ZAdd bytes", func() {
37233734
added, err := client.ZAdd(ctx, "zset", redis.Z{
37243735
Score: 1,
3725-
Member: "one",
3736+
Member: []byte("one"),
37263737
}).Result()
37273738
Expect(err).NotTo(HaveOccurred())
37283739
Expect(added).To(Equal(int64(1)))
37293740

37303741
added, err = client.ZAdd(ctx, "zset", redis.Z{
37313742
Score: 1,
3732-
Member: "uno",
3743+
Member: []byte("uno"),
37333744
}).Result()
37343745
Expect(err).NotTo(HaveOccurred())
37353746
Expect(added).To(Equal(int64(1)))
37363747

37373748
added, err = client.ZAdd(ctx, "zset", redis.Z{
37383749
Score: 2,
3739-
Member: "two",
3750+
Member: []byte("two"),
37403751
}).Result()
37413752
Expect(err).NotTo(HaveOccurred())
37423753
Expect(added).To(Equal(int64(1)))
37433754

37443755
added, err = client.ZAdd(ctx, "zset", redis.Z{
37453756
Score: 3,
3746-
Member: "two",
3757+
Member: []byte("two"),
37473758
}).Result()
37483759
Expect(err).NotTo(HaveOccurred())
37493760
Expect(added).To(Equal(int64(0)))

example/del-keys-without-ttl/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.18
55
replace github.com/redis/go-redis/v9 => ../..
66

77
require (
8-
github.com/redis/go-redis/v9 v9.3.1
8+
github.com/redis/go-redis/v9 v9.4.0
99
go.uber.org/zap v1.24.0
1010
)
1111

example/hll/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.18
44

55
replace github.com/redis/go-redis/v9 => ../..
66

7-
require github.com/redis/go-redis/v9 v9.3.1
7+
require github.com/redis/go-redis/v9 v9.4.0
88

99
require (
1010
github.com/cespare/xxhash/v2 v2.2.0 // indirect

example/lua-scripting/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.18
44

55
replace github.com/redis/go-redis/v9 => ../..
66

7-
require github.com/redis/go-redis/v9 v9.3.1
7+
require github.com/redis/go-redis/v9 v9.4.0
88

99
require (
1010
github.com/cespare/xxhash/v2 v2.2.0 // indirect

example/otel/go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ replace github.com/redis/go-redis/extra/redisotel/v9 => ../../extra/redisotel
99
replace github.com/redis/go-redis/extra/rediscmd/v9 => ../../extra/rediscmd
1010

1111
require (
12-
github.com/redis/go-redis/extra/redisotel/v9 v9.3.1
13-
github.com/redis/go-redis/v9 v9.3.1
12+
github.com/redis/go-redis/extra/redisotel/v9 v9.4.0
13+
github.com/redis/go-redis/v9 v9.4.0
1414
github.com/uptrace/uptrace-go v1.16.0
1515
go.opentelemetry.io/otel v1.16.0
1616
)
@@ -23,7 +23,7 @@ require (
2323
github.com/go-logr/stdr v1.2.2 // indirect
2424
github.com/golang/protobuf v1.5.3 // indirect
2525
github.com/grpc-ecosystem/grpc-gateway/v2 v2.15.2 // indirect
26-
github.com/redis/go-redis/extra/rediscmd/v9 v9.3.1 // indirect
26+
github.com/redis/go-redis/extra/rediscmd/v9 v9.4.0 // indirect
2727
go.opentelemetry.io/contrib/instrumentation/runtime v0.42.0 // indirect
2828
go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.16.0 // indirect
2929
go.opentelemetry.io/otel/exporters/otlp/otlpmetric v0.39.0 // indirect

example/redis-bloom/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.18
44

55
replace github.com/redis/go-redis/v9 => ../..
66

7-
require github.com/redis/go-redis/v9 v9.3.1
7+
require github.com/redis/go-redis/v9 v9.4.0
88

99
require (
1010
github.com/cespare/xxhash/v2 v2.2.0 // indirect

example/scan-struct/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ replace github.com/redis/go-redis/v9 => ../..
66

77
require (
88
github.com/davecgh/go-spew v1.1.1
9-
github.com/redis/go-redis/v9 v9.3.1
9+
github.com/redis/go-redis/v9 v9.4.0
1010
)
1111

1212
require (

extra/rediscensus/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ replace github.com/redis/go-redis/extra/rediscmd/v9 => ../rediscmd
88

99
require (
1010
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
11-
github.com/redis/go-redis/extra/rediscmd/v9 v9.3.1
12-
github.com/redis/go-redis/v9 v9.3.1
11+
github.com/redis/go-redis/extra/rediscmd/v9 v9.4.0
12+
github.com/redis/go-redis/v9 v9.4.0
1313
go.opencensus.io v0.24.0
1414
)

extra/rediscmd/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ replace github.com/redis/go-redis/v9 => ../..
77
require (
88
github.com/bsm/ginkgo/v2 v2.7.0
99
github.com/bsm/gomega v1.26.0
10-
github.com/redis/go-redis/v9 v9.3.1
10+
github.com/redis/go-redis/v9 v9.4.0
1111
)

extra/redisotel/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ replace github.com/redis/go-redis/v9 => ../..
77
replace github.com/redis/go-redis/extra/rediscmd/v9 => ../rediscmd
88

99
require (
10-
github.com/redis/go-redis/extra/rediscmd/v9 v9.3.1
11-
github.com/redis/go-redis/v9 v9.3.1
10+
github.com/redis/go-redis/extra/rediscmd/v9 v9.4.0
11+
github.com/redis/go-redis/v9 v9.4.0
1212
go.opentelemetry.io/otel v1.16.0
1313
go.opentelemetry.io/otel/metric v1.16.0
1414
go.opentelemetry.io/otel/sdk v1.16.0

0 commit comments

Comments
 (0)