debian-mirror-gitlab/config/initializers/7_redis.rb
2021-03-11 19:13:27 +05:30

10 lines
282 B
Ruby

# frozen_string_literal: true
# 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 }