-
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
Redis#exists(key) will return an Integer in redis-rb 4.3. exists? returns a boolean, you should use it instead. #195
Comments
Hi @reedstonefood ! Let me respond to the best of my understanding:
pp caller if command.to_s.downcase == 'exists' Now, both actions you can take have unique consequences:
Note that Mike refers to a different warning, which I believe was fixed by officially introducing |
related deprecation pr #207 propose close this issue as wontfix |
xref #171 |
Using version 1.8.1 of this gem, redis 4.2, ruby 2.7.5 and sidekiq 6.4.1. I get this warning a lot in my sidekiq output:
Source code:
redis-namespace/lib/redis/namespace.rb
Line 476 in 0d85378
This is a deprecation warning that was apparently fixed in version 1.8. However many people are reporting this error is still shown. This can be seen by the number of 👍 in the last two comments on #172
As there are no further official responses on that closed issue, am raising a new one to raise awareness of this issue & help any future googlers of this message know that they are not alone.
My understanding is that Mike (Sidekiq maintainer) believes this to be a problem with this gem, rather than with sidekiq. sidekiq/sidekiq#4591
The text was updated successfully, but these errors were encountered: