-
Notifications
You must be signed in to change notification settings - Fork 472
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
Align the expire option behavior of redis #962
Comments
I notice that actually it is ok in redis to repeat the same keyword and arguments, e.g.
|
Yes, I've tested redis too, but I think duplication is a very confusing behavior. I think this is also a bug of redis, because in redis, the
|
It can't tell whether it's a bug or not from the Redis code. But I guess Redis won't regard this behavior as a bug since most arguments like |
If aligning redis is the starting point, we should at least guarantee |
Yes, you're right that Redis also don't allow using |
+1. There should be a syntax error while different options in same functionality is encountered to match the behavior of redis : ) |
@tanruixiang shall we close this issue as #1017 merged? |
Ok. There are still some unresolved discussions that will be resolved after twice proposes a parsing-design's issue. |
Search before asking
Version
unstable branch.
Minimal reproduce step
What did you expect to see?
(error) ERR syntax error
What did you see instead?
Executed successfully.
Anything Else?
Maybe other commands have this problem too. I'll fix them after double-checking. Even if the command was coded to prevent this issue (such as CommandSet), the code was written with no generality. I will provide a more general parsing function in this pr.
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: