debian-mirror-gitlab/config/initializers/gitlab_experiment.rb
2021-04-17 20:07:23 +05:30

8 lines
277 B
Ruby

# frozen_string_literal: true
Gitlab::Experiment.configure do |config|
config.base_class = 'ApplicationExperiment'
config.cache = Gitlab::Experiment::Cache::RedisHashStore.new(
pool: ->(&block) { Gitlab::Redis::SharedState.with { |redis| block.call(redis) } }
)
end