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

Incompatible with Redis Cluster #23

Open
brettpaden opened this issue Dec 1, 2016 · 1 comment
Open

Incompatible with Redis Cluster #23

brettpaden opened this issue Dec 1, 2016 · 1 comment

Comments

@brettpaden
Copy link

So it seems that the use of renamenx has limitations in redis cluster:

https://redislabs.com/redis-enterprise-documentation/database-configuration/database-clustering

"Renaming keys: The use of the RENAME / RENAMENX commands is allowed only when the key's original and new values are mapped to the same tag."

Just encountered this in a test environment with our application. I'm happy to take a stab at fixing this, but thought I would mention here first in case there is a workaround or someone already has a solution.

@rprieto
Copy link
Contributor

rprieto commented Dec 1, 2016

Thanks for raising this! The tag restriction for RENAME makes sense. Is it possible for you to implement a custom hashing policy to ensure that ratelimit:foo and ratelimittemp:foo are mapped to the same tag? For example:

ratelimit(temp)?\:{(?<tag>.*)}.*

I'd happy to change the naming structure as well if it makes the regexing easier, e.g. ratelimit:foo:temp so that the tag can be ratelimit:temp (exluding the foo).

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

2 participants