mirror of https://github.com/go-redis/redis.git
Merge branch 'master' into ankit/add-custom-label-support
This commit is contained in:
commit
0374592cdd
|
@ -3733,28 +3733,28 @@ var _ = Describe("Commands", func() {
|
|||
It("should ZAdd bytes", func() {
|
||||
added, err := client.ZAdd(ctx, "zset", redis.Z{
|
||||
Score: 1,
|
||||
Member: "one",
|
||||
Member: []byte("one"),
|
||||
}).Result()
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
Expect(added).To(Equal(int64(1)))
|
||||
|
||||
added, err = client.ZAdd(ctx, "zset", redis.Z{
|
||||
Score: 1,
|
||||
Member: "uno",
|
||||
Member: []byte("uno"),
|
||||
}).Result()
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
Expect(added).To(Equal(int64(1)))
|
||||
|
||||
added, err = client.ZAdd(ctx, "zset", redis.Z{
|
||||
Score: 2,
|
||||
Member: "two",
|
||||
Member: []byte("two"),
|
||||
}).Result()
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
Expect(added).To(Equal(int64(1)))
|
||||
|
||||
added, err = client.ZAdd(ctx, "zset", redis.Z{
|
||||
Score: 3,
|
||||
Member: "two",
|
||||
Member: []byte("two"),
|
||||
}).Result()
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
Expect(added).To(Equal(int64(0)))
|
||||
|
|
|
@ -5,7 +5,7 @@ go 1.18
|
|||
replace github.com/redis/go-redis/v9 => ../..
|
||||
|
||||
require (
|
||||
github.com/redis/go-redis/v9 v9.3.1
|
||||
github.com/redis/go-redis/v9 v9.4.0
|
||||
go.uber.org/zap v1.24.0
|
||||
)
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ go 1.18
|
|||
|
||||
replace github.com/redis/go-redis/v9 => ../..
|
||||
|
||||
require github.com/redis/go-redis/v9 v9.3.1
|
||||
require github.com/redis/go-redis/v9 v9.4.0
|
||||
|
||||
require (
|
||||
github.com/cespare/xxhash/v2 v2.2.0 // indirect
|
||||
|
|
|
@ -4,7 +4,7 @@ go 1.18
|
|||
|
||||
replace github.com/redis/go-redis/v9 => ../..
|
||||
|
||||
require github.com/redis/go-redis/v9 v9.3.1
|
||||
require github.com/redis/go-redis/v9 v9.4.0
|
||||
|
||||
require (
|
||||
github.com/cespare/xxhash/v2 v2.2.0 // indirect
|
||||
|
|
|
@ -9,8 +9,8 @@ replace github.com/redis/go-redis/extra/redisotel/v9 => ../../extra/redisotel
|
|||
replace github.com/redis/go-redis/extra/rediscmd/v9 => ../../extra/rediscmd
|
||||
|
||||
require (
|
||||
github.com/redis/go-redis/extra/redisotel/v9 v9.3.1
|
||||
github.com/redis/go-redis/v9 v9.3.1
|
||||
github.com/redis/go-redis/extra/redisotel/v9 v9.4.0
|
||||
github.com/redis/go-redis/v9 v9.4.0
|
||||
github.com/uptrace/uptrace-go v1.16.0
|
||||
go.opentelemetry.io/otel v1.16.0
|
||||
)
|
||||
|
@ -23,7 +23,7 @@ require (
|
|||
github.com/go-logr/stdr v1.2.2 // indirect
|
||||
github.com/golang/protobuf v1.5.3 // indirect
|
||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.15.2 // indirect
|
||||
github.com/redis/go-redis/extra/rediscmd/v9 v9.3.1 // indirect
|
||||
github.com/redis/go-redis/extra/rediscmd/v9 v9.4.0 // indirect
|
||||
go.opentelemetry.io/contrib/instrumentation/runtime v0.42.0 // indirect
|
||||
go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.16.0 // indirect
|
||||
go.opentelemetry.io/otel/exporters/otlp/otlpmetric v0.39.0 // indirect
|
||||
|
|
|
@ -4,7 +4,7 @@ go 1.18
|
|||
|
||||
replace github.com/redis/go-redis/v9 => ../..
|
||||
|
||||
require github.com/redis/go-redis/v9 v9.3.1
|
||||
require github.com/redis/go-redis/v9 v9.4.0
|
||||
|
||||
require (
|
||||
github.com/cespare/xxhash/v2 v2.2.0 // indirect
|
||||
|
|
|
@ -6,7 +6,7 @@ replace github.com/redis/go-redis/v9 => ../..
|
|||
|
||||
require (
|
||||
github.com/davecgh/go-spew v1.1.1
|
||||
github.com/redis/go-redis/v9 v9.3.1
|
||||
github.com/redis/go-redis/v9 v9.4.0
|
||||
)
|
||||
|
||||
require (
|
||||
|
|
|
@ -8,7 +8,7 @@ replace github.com/redis/go-redis/extra/rediscmd/v9 => ../rediscmd
|
|||
|
||||
require (
|
||||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
||||
github.com/redis/go-redis/extra/rediscmd/v9 v9.3.1
|
||||
github.com/redis/go-redis/v9 v9.3.1
|
||||
github.com/redis/go-redis/extra/rediscmd/v9 v9.4.0
|
||||
github.com/redis/go-redis/v9 v9.4.0
|
||||
go.opencensus.io v0.24.0
|
||||
)
|
||||
|
|
|
@ -7,5 +7,5 @@ replace github.com/redis/go-redis/v9 => ../..
|
|||
require (
|
||||
github.com/bsm/ginkgo/v2 v2.7.0
|
||||
github.com/bsm/gomega v1.26.0
|
||||
github.com/redis/go-redis/v9 v9.3.1
|
||||
github.com/redis/go-redis/v9 v9.4.0
|
||||
)
|
||||
|
|
|
@ -7,8 +7,8 @@ replace github.com/redis/go-redis/v9 => ../..
|
|||
replace github.com/redis/go-redis/extra/rediscmd/v9 => ../rediscmd
|
||||
|
||||
require (
|
||||
github.com/redis/go-redis/extra/rediscmd/v9 v9.3.1
|
||||
github.com/redis/go-redis/v9 v9.3.1
|
||||
github.com/redis/go-redis/extra/rediscmd/v9 v9.4.0
|
||||
github.com/redis/go-redis/v9 v9.4.0
|
||||
go.opentelemetry.io/otel v1.16.0
|
||||
go.opentelemetry.io/otel/metric v1.16.0
|
||||
go.opentelemetry.io/otel/sdk v1.16.0
|
||||
|
|
|
@ -6,7 +6,7 @@ replace github.com/redis/go-redis/v9 => ../..
|
|||
|
||||
require (
|
||||
github.com/prometheus/client_golang v1.14.0
|
||||
github.com/redis/go-redis/v9 v9.3.1
|
||||
github.com/redis/go-redis/v9 v9.4.0
|
||||
)
|
||||
|
||||
require (
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "redis",
|
||||
"version": "9.3.1",
|
||||
"version": "9.4.0",
|
||||
"main": "index.js",
|
||||
"repository": "git@github.com:redis/go-redis.git",
|
||||
"author": "Vladimir Mihailenco <vladimir.webdev@gmail.com>",
|
||||
|
|
|
@ -727,7 +727,7 @@ func (c cmdable) ZScan(ctx context.Context, key string, cursor uint64, match str
|
|||
// Z represents sorted set member.
|
||||
type Z struct {
|
||||
Score float64
|
||||
Member string
|
||||
Member interface{}
|
||||
}
|
||||
|
||||
// ZWithKey represents sorted set member including the name of the key where it was popped.
|
||||
|
|
|
@ -2,5 +2,5 @@ package redis
|
|||
|
||||
// Version is the current release version.
|
||||
func Version() string {
|
||||
return "9.3.1"
|
||||
return "9.4.0"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue