1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Force Redis 4.x now, fixes #3748

This commit is contained in:
Mike Perham 2018-02-06 08:58:55 -08:00
parent 77966a9b5a
commit ad80323432
2 changed files with 3 additions and 3 deletions

View file

@ -149,8 +149,8 @@ module Sidekiq
def redis_connection
Sidekiq.redis do |conn|
c = conn._client
"redis://#{c.location}/#{c.db}"
c = conn.connection
"redis://#{c[:location]}/#{c[:db]}"
end
end

View file

@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
gem.version = Sidekiq::VERSION
gem.required_ruby_version = ">= 2.2.2"
gem.add_dependency 'redis', '>= 3.3.4', '< 5'
gem.add_dependency 'redis', '>= 4.0.1', '< 5'
gem.add_dependency 'connection_pool', '~> 2.2', '>= 2.2.0'
gem.add_dependency 'concurrent-ruby', '~> 1.0'
gem.add_dependency 'rack-protection', '>= 1.5.0'