Skip to content

Commit 33a2148

Browse files
fix(deps): update module github.com/go-redis/redis/v8 to v9 (#14978)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Paul Rogers <paul.rogers@grafana.com>
1 parent 1b93086 commit 33a2148

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+19169
-9555
lines changed

‎go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ require (
3838
github.com/fsouza/fake-gcs-server v1.50.2
3939
github.com/go-kit/log v0.2.1
4040
github.com/go-logfmt/logfmt v0.6.0
41-
github.com/go-redis/redis/v8 v8.11.5
4241
github.com/gocql/gocql v0.0.0-20200526081602-cd04bd7f22a7
4342
github.com/gogo/protobuf v1.3.2 // remember to update loki-build-image/Dockerfile too
4443
github.com/gogo/status v1.1.1
@@ -86,6 +85,7 @@ require (
8685
github.com/prometheus/client_model v0.6.1
8786
github.com/prometheus/common v0.60.1
8887
github.com/prometheus/prometheus v0.53.2-0.20240726125539-d4f098ae80fb
88+
github.com/redis/go-redis/v9 v9.7.0
8989
github.com/segmentio/fasthash v1.0.3
9090
github.com/shurcooL/httpfs v0.0.0-20230704072500-f1e31cf0ba5c
9191
github.com/shurcooL/vfsgen v0.0.0-20200824052919-0d455de96546

‎go.sum

+6-2
Original file line numberDiff line numberDiff line change
@@ -1032,6 +1032,10 @@ github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869/go.mod h1:Ekp36dR
10321032
github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps=
10331033
github.com/boombuler/barcode v1.0.0/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8=
10341034
github.com/boombuler/barcode v1.0.1/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8=
1035+
github.com/bsm/ginkgo/v2 v2.12.0 h1:Ny8MWAHyOepLGlLKYmXG4IEkioBysk6GpaRTLC8zwWs=
1036+
github.com/bsm/ginkgo/v2 v2.12.0/go.mod h1:SwYbGRRDovPVboqFv0tPTcG1sN61LM1Z4ARdbAV9g4c=
1037+
github.com/bsm/gomega v1.27.10 h1:yeMWxP2pV2fG3FgAODIY8EiRE3dy0aeFYt4l7wh6yKA=
1038+
github.com/bsm/gomega v1.27.10/go.mod h1:JyEr/xRbxbtgWNi8tIEVPUYZ5Dzef52k01W3YH0H+O0=
10351039
github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMUs=
10361040
github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0=
10371041
github.com/c2h5oh/datasize v0.0.0-20231215233829-aa82cc1e6500 h1:6lhrsTEnloDPXyeZBvSYvQf8u86jbKehZPVDDlkgDl4=
@@ -1494,8 +1498,6 @@ github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91
14941498
github.com/go-playground/validator/v10 v10.19.0 h1:ol+5Fu+cSq9JD7SoSqe04GMI92cbn0+wvQ3bZ8b/AU4=
14951499
github.com/go-playground/validator/v10 v10.19.0/go.mod h1:dbuPbCMFw/DrkbEynArYaCwl3amGuJotoKCe95atGMM=
14961500
github.com/go-redis/redis v6.15.9+incompatible/go.mod h1:NAIEuMOZ/fxfXJIrKDQDz8wamY7mA7PouImQ2Jvg6kA=
1497-
github.com/go-redis/redis/v8 v8.11.5 h1:AcZZR7igkdvfVmQTPnu9WE37LRrO/YrBH5zWyjDC0oI=
1498-
github.com/go-redis/redis/v8 v8.11.5/go.mod h1:gREzHqY1hg6oD9ngVRbLStwAWKhA0FEgq8Jd4h5lpwo=
14991501
github.com/go-resty/resty/v2 v2.13.1 h1:x+LHXBI2nMB1vqndymf26quycC4aggYJ7DECYbiz03g=
15001502
github.com/go-resty/resty/v2 v2.13.1/go.mod h1:GznXlLxkq6Nh4sU59rPmUw3VtgpO3aS96ORAI6Q7d+0=
15011503
github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w=
@@ -2448,6 +2450,8 @@ github.com/rcrowley/go-metrics v0.0.0-20190826022208-cac0b30c2563/go.mod h1:bCqn
24482450
github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4=
24492451
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM=
24502452
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4=
2453+
github.com/redis/go-redis/v9 v9.7.0 h1:HhLSs+B6O021gwzl+locl0zEDnyNkxMtf/Z3NNBMa9E=
2454+
github.com/redis/go-redis/v9 v9.7.0/go.mod h1:f6zhXITC7JUJIlPEiBOTXxJgPLdZcA93GewI7inzyWw=
24512455
github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=
24522456
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=
24532457
github.com/renier/xmlrpc v0.0.0-20170708154548-ce4a1a486c03/go.mod h1:gRAiPF5C5Nd0eyyRdqIu9qTiFSoZzpTq727b5B8fkkU=

‎pkg/storage/chunk/cache/redis_cache_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
"github.com/alicebob/miniredis/v2"
99
"github.com/go-kit/log"
10-
"github.com/go-redis/redis/v8"
10+
"github.com/redis/go-redis/v9"
1111
"github.com/stretchr/testify/require"
1212
)
1313

‎pkg/storage/chunk/cache/redis_client.go

+10-10
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212

1313
"github.com/grafana/dskit/flagext"
1414

15-
"github.com/go-redis/redis/v8"
15+
"github.com/redis/go-redis/v9"
1616
)
1717

1818
// RedisConfig defines how a RedisCache should be constructed.
@@ -63,15 +63,15 @@ func NewRedisClient(cfg *RedisConfig) (*RedisClient, error) {
6363
}
6464

6565
opt := &redis.UniversalOptions{
66-
Addrs: endpoints,
67-
MasterName: cfg.MasterName,
68-
Username: cfg.Username,
69-
Password: cfg.Password.String(),
70-
DB: cfg.DB,
71-
PoolSize: cfg.PoolSize,
72-
IdleTimeout: cfg.IdleTimeout,
73-
MaxConnAge: cfg.MaxConnAge,
74-
RouteRandomly: cfg.RouteRandomly,
66+
Addrs: endpoints,
67+
MasterName: cfg.MasterName,
68+
Username: cfg.Username,
69+
Password: cfg.Password.String(),
70+
DB: cfg.DB,
71+
PoolSize: cfg.PoolSize,
72+
ConnMaxIdleTime: cfg.IdleTimeout,
73+
ConnMaxLifetime: cfg.MaxConnAge,
74+
RouteRandomly: cfg.RouteRandomly,
7575
}
7676
if cfg.EnableTLS {
7777
opt.TLSConfig = &tls.Config{InsecureSkipVerify: cfg.InsecureSkipVerify}

‎pkg/storage/chunk/cache/redis_client_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"time"
88

99
"github.com/alicebob/miniredis/v2"
10-
"github.com/go-redis/redis/v8"
10+
"github.com/redis/go-redis/v9"
1111
"github.com/stretchr/testify/assert"
1212
"github.com/stretchr/testify/require"
1313
)

‎vendor/github.com/go-redis/redis/v8/.gitignore

-3
This file was deleted.

‎vendor/github.com/go-redis/redis/v8/CHANGELOG.md

-177
This file was deleted.

‎vendor/github.com/go-redis/redis/v8/Makefile

-35
This file was deleted.

0 commit comments

Comments
 (0)