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

Redis cluster not Compatible #31

Closed
yzf opened this issue Oct 1, 2018 · 0 comments
Closed

Redis cluster not Compatible #31

yzf opened this issue Oct 1, 2018 · 0 comments

Comments

@yzf
Copy link

yzf commented Oct 1, 2018

When using redis cluster, keys in lua script should be in the same slot. In current implementation, u use KEYS for lock_name, owner, expire. In most cases, they are not in the same slot, so it will raise rediscluster.exceptions.RedisClusterException: EVALSHA - all keys must map to the same key slot if use redis-py-cluster as backend.

I think it's more reasonable to use ARGV for owner and expire as they are actually not KEYS. And with ARGV, it will be compatible to redis cluster.

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