-
Notifications
You must be signed in to change notification settings - Fork 192
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
Design Decision: Missing Commands #34
Comments
I had a similar experience with I would probably agree with something as simple as emitting warning messages to |
I would accept a patch that printed a warning with a test. |
I found that 81a742f had already added a warning for missing commands. But after @defunkt committed it, he reverted it and added a comment instead (see fa6dfcd). Nevertheless, if we discuss his decision and find that it is better to add a warning again, we can do so. For example, to avoid being too annoying, how about adding an option like
|
Should missing commands just be forwarded to redis?
Consider the following scenario:
redis-rb
(yay!)redis-namespace
, expecting it to be namespacedredis-namespace
means taking down the application and manually migrating data.Wouldn't it be better to find out that a command is not supported while in dev? A warning, at least, if not an outright error?
I ended up with > 500,000 records not-namespaced because I used setbit and getrange, neither of which were namespaced so it worked at a unit test level. When I deployed a change that would expire or delete keys, those functions were namespaced, so they didn't work, leading me to find the root cause. Knowing that these functions were not supported while in dev would have saved me a production-scale headache.
The text was updated successfully, but these errors were encountered: