2016-03-25 01:50:48 +00:00
|
|
|
redis_conn = proc {
|
|
|
|
$redis.dup
|
|
|
|
}
|
|
|
|
|
|
|
|
Sidekiq.configure_server do |config|
|
|
|
|
config.redis = ConnectionPool.new(size: 5, &redis_conn)
|
|
|
|
end
|
|
|
|
|
|
|
|
Sidekiq.configure_client do |config|
|
2016-03-25 13:20:31 +00:00
|
|
|
config.redis = ConnectionPool.new(size: 5, &redis_conn)
|
2016-03-25 01:50:48 +00:00
|
|
|
end
|