debian-mirror-gitlab/config/initializers/gitlab_experiment.rb

9 lines
277 B
Ruby
Raw Normal View History

2021-02-22 17:27:13 +05:30
# frozen_string_literal: true
Gitlab::Experiment.configure do |config|
config.base_class = 'ApplicationExperiment'
2021-04-17 20:07:23 +05:30
config.cache = Gitlab::Experiment::Cache::RedisHashStore.new(
pool: ->(&block) { Gitlab::Redis::SharedState.with { |redis| block.call(redis) } }
)
2021-02-22 17:27:13 +05:30
end