-
-
Notifications
You must be signed in to change notification settings - Fork 151
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
Don't work methods that use KEYS command(ioredis) #245
Comments
Can you confirm that your keyPrefix does not have an special charecters? As a note this might be conflicting with the node-resque "namespace" option: |
Yes, it doesn't have any special charecters. And it not conflicting with I use |
@evantahler ping =) |
In d3477e4 I've added a number of passing tests which demonstrate that (I think) the ioredis+prefix behavior is working properly. Please fork this project, and add a failing test to this section which demonstrates the problem you are observing. |
Signed-off-by: a.kuzmenko <[email protected]>
Hi @evantahler But I think also broken next methods:
|
Hi @evantahler |
Thank you for your examples! That helped me to see that the issue was coming from any command which relies on It seems that supporting a
The most clear response from @luin is
and I agree with him. I think that using keyPrefix in this way is dangerous at the command level. That is why we use redis "namespaces" instead in a way we have direct control over, which allows a similar result. I would recommend either using databases within your redis server to arrange your data, rather than I will add a note to our readme that we do not support |
@evantahler maybe I can make PR, for allow make connection options Example:
And in method
It's allow to use |
If you make your change non-breaking, ie: it works with both arrays and strings, that could work. Please be sure to test it! |
Hi @evantahler |
Hi,
If I set in config
keyPrefix
. Some commands stop work(it described in ioredis docs: https://github.com/luin/ioredis/blob/master/README.md#transparent-key-prefixing)Step to reproduce:
NodeResque.Queue
with not null optionskeyPrefix
await queue.timestamps()
Methods that stop working(maybe not all):
The text was updated successfully, but these errors were encountered: