feat(cache): upgrade Redis client to v9 - #4891
Merged
Merged
Conversation
4 tasks
There was a problem hiding this comment.
Pull request overview
Upgrades the project’s Redis cache dependency from the deprecated github.com/go-redis/redis/v8 module to the maintained github.com/redis/go-redis/v9 module, updating the cache implementation and associated tests accordingly.
Changes:
- Switch root module dependency to
github.com/redis/go-redis/v9 v9.22.0and removegithub.com/go-redis/redis/v8. - Update
cache/redisimplementation and tests to import the v9 module path. - Refresh
go.sumto reflect the new dependency graph aftergo mod tidy.
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| go.mod | Drops go-redis/v8 and adds redis/go-redis/v9 (plus indirect tidy changes). |
| go.sum | Updates checksums to match the v9 dependency set and tidied transitive deps. |
| cache/redis/redis.go | Updates Redis client import to v9 for the cache implementation. |
| cache/redis/options.go | Updates Redis client import to v9 for options/client construction. |
| cache/redis/options_test.go | Updates Redis client import to v9 for tests. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
31
to
34
| github.com/prometheus/client_model v0.6.1 | ||
| github.com/rabbitmq/amqp091-go v1.10.0 | ||
| github.com/redis/go-redis/v9 v9.22.0 | ||
| github.com/stretchr/objx v0.5.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
github.com/redis/go-redis/v9module at v9.22.0Testing
go build ./...go vet ./...go test ./cache/redisgo test ./...(environment failures: loopback connections are blocked and the credential-free AtlasCloud conformance request returned HTTP 400)golangci-lint run ./...(environment limitation: installed binary was built with Go 1.24 but the module targets Go 1.25.12)Closes #4890