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

Handle unknown commands correctly #46

Open
zuiderkwast opened this issue Mar 19, 2021 · 0 comments
Open

Handle unknown commands correctly #46

zuiderkwast opened this issue Mar 19, 2021 · 0 comments

Comments

@zuiderkwast
Copy link
Collaborator

By default, we assume the key is the first argument after the command name, with known exceptions. It's not correct in some cases and it's not compatible with future Redis commands.

A better fallback would be to ask Redis about the keys in a command. It can be done using the COMMAND command (with logic for all commands that can be cached) or COMMAND GETKEYS for a specific command string, if the syntax is too complex.

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

No branches or pull requests

1 participant