gitlab-org--gitlab-foss/config/initializers/gitlab_experiment.rb

9 lines
313 B
Ruby

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