Skip to content
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

Fix deprecated usage of redis.hmset #2501

Merged
merged 2 commits into from Jul 23, 2023

Conversation

pajlada
Copy link
Member

@pajlada pajlada commented Jul 23, 2023

The replacement is to just use redis.hset with the mapping kwarg, as can
be seen in the docs https://redis-py.readthedocs.io/en/stable/commands.html#redis.commands.core.CoreCommands.hset

Pull request checklist:

  • CHANGELOG.md was updated, if applicable
  • Documentation in docs/ or install-docs/ was updated, if applicable
  • I have tested all changes

Tested by manually looking at & messing with the stream_data redis key and seeing things update as expected

The replacement is to just use redis.hset with the mapping kwarg, as can
be seen in the docs https://redis-py.readthedocs.io/en/stable/commands.html#redis.commands.core.CoreCommands.hset
@pajlada
Copy link
Member Author

pajlada commented Jul 23, 2023

LGTM 👍

image

@pajlada pajlada enabled auto-merge (squash) July 23, 2023 12:35
@pajlada pajlada disabled auto-merge July 23, 2023 13:07
@pajlada pajlada merged commit ea839ca into master Jul 23, 2023
10 checks passed
@pajlada pajlada deleted the chore/fix-deprecated-use-of-redis-hmset branch July 23, 2023 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant