-
Notifications
You must be signed in to change notification settings - Fork 53
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
Choose pluck_script based on Redis version #58
base: master
Are you sure you want to change the base?
Choose pluck_script based on Redis version #58
Conversation
@russointroitoa any updates on that PR ? |
Remove byebug and fix linting Fix line too long Add hashie dependency Mock RedisClient instead of Hashie Fix tests Fix comparison Fix indentation Remove redundant curr directory path Change constant name
69a3bb7
to
b3497cd
Compare
@ericproulx Sorry for the long delay. The problem should be fixed now. My updates involve:
|
@russointroitoa no worries thanks :) Probably in another PR, you could load the script initially in redis instead of always passing the raw version. I've seen this within the redlock gem that load the script if not present and use the Somehow, I don't know when the connection is established with Redis, but it could improve a little bit the network latency since you'll pass the SHA1 instead of the whole script every time. I could give it a try if would like |
Since the updated LUA script coming from this PR uses commands available from Redis >= 6.2.0, with the following PR we select the old or new LUA script based on the Redis version