Update hiredis driver and add a default REDIS_POOL_SIZE

This commit is contained in:
Fosco Marotto
2021-01-16 13:22:15 -05:00
parent 919eb87d47
commit c9da516af6
3 changed files with 3 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ require 'connection_pool'
redis_connection = ConnectionPool::Wrapper.new(size: ENV['REDIS_POOL_SIZE'], timeout: 10) { Redis.new(
redis_connection = ConnectionPool::Wrapper.new(size: ENV['REDIS_POOL_SIZE'] || 5, timeout: 10) { Redis.new(
url: ENV['REDIS_URL'],
driver: :hiredis
)}