debian-mirror-gitlab/config/initializers/7_redis.rb

9 lines
251 B
Ruby
Raw Normal View History

2017-09-10 17:25:29 +05:30
# Make sure we initialize a Redis connection pool before multi-threaded
# execution starts by
# 1. Sidekiq
# 2. Rails.cache
# 3. HTTP clients
Gitlab::Redis::Cache.with { nil }
Gitlab::Redis::Queues.with { nil }
Gitlab::Redis::SharedState.with { nil }