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

Hide showing Redis warnings in Sidekiq #4595

Closed
ghost opened this issue Jun 11, 2020 · 2 comments
Closed

Hide showing Redis warnings in Sidekiq #4595

ghost opened this issue Jun 11, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Jun 11, 2020

I am seeing this in Sidekiq from today.

Redis#exists(key) will return an Integer in redis-rb 4.3. exists? returns a boolean, you should use it instead. To opt-in to the new behavior now you can set Redis.exists_returns_integer = true. To disable this message and keep the current (boolean) behaviour of 'exists' you can set Redis.exists_returns_integer = false, but this option will be removed in 5.0. (/Users/admin/.rvm/gems/ruby-2.7.0/gems/sidekiq-6.0.7/lib/sidekiq/launcher.rb:160:in `block (2 levels) in ❤')

Is there any way to disable showing this?

@mperham
Copy link
Collaborator

mperham commented Jun 11, 2020

#4591

@mperham mperham closed this as completed Jun 11, 2020
@MoacirPetry
Copy link

@nikolacojcic99 if you are running a Ruby on Rails app, you can create this file config/initializers/redis.rb e put this content: Redis.exists_returns_integer = true

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