Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ require (
github.com/prometheus/client_model v0.6.2
github.com/prometheus/common v0.67.2
github.com/prometheus/prometheus v0.307.3
github.com/redis/go-redis/v9 v9.10.0
github.com/redis/go-redis/v9 v9.16.0
github.com/segmentio/fasthash v1.0.3
github.com/shurcooL/httpfs v0.0.0-20230704072500-f1e31cf0ba5c
github.com/shurcooL/vfsgen v0.0.0-20230704071429-0000e147ea92
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1038,8 +1038,8 @@ github.com/puzpuzpuz/xsync/v3 v3.5.1 h1:GJYJZwO6IdxN/IKbneznS6yPkVC+c3zyY/j19c++
github.com/puzpuzpuz/xsync/v3 v3.5.1/go.mod h1:VjzYrABPabuM4KyBh1Ftq6u8nhwY5tBPKP9jpmh0nnA=
github.com/rcrowley/go-metrics v0.0.0-20250401214520-65e299d6c5c9 h1:bsUq1dX0N8AOIL7EB/X911+m4EHsnWEHeJ0c+3TTBrg=
github.com/rcrowley/go-metrics v0.0.0-20250401214520-65e299d6c5c9/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4=
github.com/redis/go-redis/v9 v9.10.0 h1:FxwK3eV8p/CQa0Ch276C7u2d0eNC9kCmAYQ7mCXCzVs=
github.com/redis/go-redis/v9 v9.10.0/go.mod h1:huWgSWd8mW6+m0VPhJjSSQ+d6Nh1VICQ6Q5lHuCH/Iw=
github.com/redis/go-redis/v9 v9.16.0 h1:OotgqgLSRCmzfqChbQyG1PHC3tLNR89DG4jdOERSEP4=
github.com/redis/go-redis/v9 v9.16.0/go.mod h1:u410H11HMLoB+TP67dz8rL9s6QW2j76l0//kSOd3370=
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec h1:W09IVJc94icq4NjY3clb7Lk8O1qJ8BdBEF8z0ibU0rE=
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=
github.com/richardartoul/molecule v1.0.0 h1:+LFA9cT7fn8KF39zy4dhOnwcOwRoqKiBkPqKqya+8+U=
Expand Down
17 changes: 17 additions & 0 deletions pkg/storage/chunk/cache/redis_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,23 @@ func (c *RedisClient) MSet(ctx context.Context, keys []string, values [][]byte)
defer cancel()
}

// redis.UniversalClient can take redis.Client and redis.ClusterClient.
// if redis.Client is set, then Single node or sentinel configuration. pipeline is always supported.
// if redis.ClusterClient is set, then Redis Cluster configuration. pipeline may not be supported
// when keys hash to different slots.
_, isCluster := c.rdb.(*redis.ClusterClient)

if isCluster {
// In cluster mode, use individual Set calls to avoid CROSSSLOT errors
for i := range keys {
err := c.rdb.Set(ctx, keys[i], values[i], c.expiration).Err()
if err != nil {
return err
}
}
return nil
}

pipe := c.rdb.TxPipeline()
for i := range keys {
pipe.Set(ctx, keys[i], values[i], c.expiration)
Expand Down
4 changes: 4 additions & 0 deletions vendor/github.com/redis/go-redis/v9/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

133 changes: 0 additions & 133 deletions vendor/github.com/redis/go-redis/v9/CHANGELOG.md

This file was deleted.

2 changes: 1 addition & 1 deletion vendor/github.com/redis/go-redis/v9/CONTRIBUTING.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions vendor/github.com/redis/go-redis/v9/Makefile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

61 changes: 32 additions & 29 deletions vendor/github.com/redis/go-redis/v9/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading