Skip to content

feat(redis): Add tags for more commands #733

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

Merged
merged 2 commits into from
Jun 25, 2020
Merged

Conversation

tonyo
Copy link
Contributor

@tonyo tonyo commented Jun 23, 2020

When we deal with multikey commands (e.g. DEL), it's sometimes still useful to have the key as a tag. To make it less ambiguous, let's add the tag only if the command has one argument.

@tonyo tonyo requested a review from untitaker June 23, 2020 15:16
@@ -9,6 +9,11 @@
if MYPY:
from typing import Any

SINGLE_KEY_COMMANDS = frozenset(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you prefix those w underscore?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hell yeah

@tonyo tonyo merged commit f352078 into master Jun 25, 2020
@tonyo tonyo deleted the feat/redis-more-commands branch June 25, 2020 16:49
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.

2 participants