Skip to content

Commit 6ec2570

Browse files
authored
Merge branch 'master' into should-be-able-to-create-a-ring-from-universal-options
2 parents 1244908 + af4872c commit 6ec2570

File tree

16 files changed

+36
-38
lines changed

16 files changed

+36
-38
lines changed

.github/workflows/stale-issues.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/stale@v3
15+
- uses: actions/stale@v8
1616
with:
1717
repo-token: ${{ secrets.GITHUB_TOKEN }}
1818
stale-issue-message: 'This issue is marked stale. It will be closed in 30 days if it is not updated.'

README.md

+10-5
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
> use it to monitor applications and set up automatic alerts to receive notifications via email,
1111
> Slack, Telegram, and others.
1212
>
13-
> See [OpenTelemetry](example/otel) example which demonstrates how you can use Uptrace to monitor
14-
> go-redis.
13+
> See [OpenTelemetry](https://github.com/redis/go-redis/tree/master/example/otel) example which
14+
> demonstrates how you can use Uptrace to monitor go-redis.
1515
1616
## Documentation
1717

@@ -107,7 +107,8 @@ func ExampleClient() {
107107
}
108108
```
109109

110-
The above can be modified to specify the version of the RESP protocol by adding the `protocol` option to the `Options` struct:
110+
The above can be modified to specify the version of the RESP protocol by adding the `protocol`
111+
option to the `Options` struct:
111112

112113
```go
113114
rdb := redis.NewClient(&redis.Options{
@@ -121,7 +122,10 @@ The above can be modified to specify the version of the RESP protocol by adding
121122

122123
### Connecting via a redis url
123124

124-
go-redis also supports connecting via the [redis uri specification](https://github.com/redis/redis-specifications/tree/master/uri/redis.txt). The example below demonstrates how the connection can easily be configured using a string, adhering to this specification.
125+
go-redis also supports connecting via the
126+
[redis uri specification](https://github.com/redis/redis-specifications/tree/master/uri/redis.txt).
127+
The example below demonstrates how the connection can easily be configured using a string, adhering
128+
to this specification.
125129

126130
```go
127131
import (
@@ -208,7 +212,8 @@ Lastly, run:
208212
go test
209213
```
210214
211-
Another option is to run your specific tests with an already running redis. The example below, tests against a redis running on port 9999.:
215+
Another option is to run your specific tests with an already running redis. The example below, tests
216+
against a redis running on port 9999.:
212217
213218
```shell
214219
REDIS_PORT=9999 go test <your options>

commands.go

+1
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ type Cmdable interface {
224224
GearsCmdable
225225
ProbabilisticCmdable
226226
TimeseriesCmdable
227+
StreamCmdable
227228
}
228229

229230
type StatefulCmdable interface {

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

+1-1
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.2.0
8+
github.com/redis/go-redis/v9 v9.2.1
99
go.uber.org/zap v1.24.0
1010
)
1111

example/hll/go.mod

+1-1
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.2.0
7+
require github.com/redis/go-redis/v9 v9.2.1
88

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

example/lua-scripting/go.mod

+1-1
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.2.0
7+
require github.com/redis/go-redis/v9 v9.2.1
88

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

example/otel/go.mod

+3-3
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.2.0
13-
github.com/redis/go-redis/v9 v9.2.0
12+
github.com/redis/go-redis/extra/redisotel/v9 v9.2.1
13+
github.com/redis/go-redis/v9 v9.2.1
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.2.0 // indirect
26+
github.com/redis/go-redis/extra/rediscmd/v9 v9.2.1 // 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

+1-1
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.2.0
7+
require github.com/redis/go-redis/v9 v9.2.1
88

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

example/scan-struct/go.mod

+1-1
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.2.0
9+
github.com/redis/go-redis/v9 v9.2.1
1010
)
1111

1212
require (

extra/rediscensus/go.mod

+2-2
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.2.0
12-
github.com/redis/go-redis/v9 v9.2.0
11+
github.com/redis/go-redis/extra/rediscmd/v9 v9.2.1
12+
github.com/redis/go-redis/v9 v9.2.1
1313
go.opencensus.io v0.24.0
1414
)

extra/rediscmd/go.mod

+1-1
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.2.0
10+
github.com/redis/go-redis/v9 v9.2.1
1111
)

extra/redisotel/go.mod

+2-2
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.2.0
11-
github.com/redis/go-redis/v9 v9.2.0
10+
github.com/redis/go-redis/extra/rediscmd/v9 v9.2.1
11+
github.com/redis/go-redis/v9 v9.2.1
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

extra/redisprometheus/go.mod

+1-1
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/prometheus/client_golang v1.14.0
9-
github.com/redis/go-redis/v9 v9.2.0
9+
github.com/redis/go-redis/v9 v9.2.1
1010
)
1111

1212
require (

gears_commands.go

+8-16
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,11 @@ func (c cmdable) TFCallArgs(ctx context.Context, libName string, funcName string
110110
lf := libName + "." + funcName
111111
args := []interface{}{"TFCALL", lf, numKeys}
112112
if options != nil {
113-
if options.Keys != nil {
114-
for _, key := range options.Keys {
115-
args = append(args, key)
116-
}
113+
for _, key := range options.Keys {
114+
args = append(args, key)
117115
}
118-
if options.Arguments != nil {
119-
for _, key := range options.Arguments {
120-
args = append(args, key)
121-
}
116+
for _, key := range options.Arguments {
117+
args = append(args, key)
122118
}
123119
}
124120
cmd := NewCmd(ctx, args...)
@@ -140,15 +136,11 @@ func (c cmdable) TFCallASYNCArgs(ctx context.Context, libName string, funcName s
140136
lf := fmt.Sprintf("%s.%s", libName, funcName)
141137
args := []interface{}{"TFCALLASYNC", lf, numKeys}
142138
if options != nil {
143-
if options.Keys != nil {
144-
for _, key := range options.Keys {
145-
args = append(args, key)
146-
}
139+
for _, key := range options.Keys {
140+
args = append(args, key)
147141
}
148-
if options.Arguments != nil {
149-
for _, key := range options.Arguments {
150-
args = append(args, key)
151-
}
142+
for _, key := range options.Arguments {
143+
args = append(args, key)
152144
}
153145
}
154146
cmd := NewCmd(ctx, args...)

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "redis",
3-
"version": "9.2.0",
3+
"version": "9.2.1",
44
"main": "index.js",
55
"repository": "[email protected]:redis/go-redis.git",
66
"author": "Vladimir Mihailenco <[email protected]>",

version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ package redis
22

33
// Version is the current release version.
44
func Version() string {
5-
return "9.2.0"
5+
return "9.2.1"
66
}

0 commit comments

Comments
 (0)