What is the best way to use the same redis connection as sideqik?
Question
I want to be able to use and connect to the same redis instance as the one that is defined for sidekiq.
In resque, it is retrieved byResque.redis
Solution
Sidekiq takes a block, and the equivalent method is:
Sidekiq.redis { |x| x.redis }
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow