-
Couldn't load subscription status.
- Fork 6.6k
chore(deps): update dependency redis to v7 #13617
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| functions-framework==3.9.2 | ||
| redis==6.0.0 | ||
| redis==7.0.0 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,6 +13,6 @@ | |
| # [START memorystore_requirements] | ||
| Flask==3.0.3 | ||
| gunicorn==23.0.0 | ||
| redis==6.0.0 | ||
| redis==7.0.0 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This update to 1. Python Version Incompatibility (Critical): 2. Deprecated In - redis_client = redis.StrictRedis(host=redis_host, port=redis_port)
+ redis_client = redis.Redis(host=redis_host, port=redis_port) |
||
| Werkzeug==3.0.3 | ||
| # [END memorystore_requirements] | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While this update is fine for the Cloud Function environment, it's a good opportunity to address the use of a deprecated class. The
redis.StrictRedisclass used infunctions/memorystore/redis/main.pyis deprecated and should be replaced withredis.Redisto align with the library's current API and avoid future breakages.This change should be applied in
functions/memorystore/redis/main.pyand its corresponding test file:In
functions/memorystore/redis/main.py(line 24):In
functions/memorystore/redis/main_test.py(line 27):