diff options
Diffstat (limited to 'config/initializers/gitlab_experiment.rb')
-rw-r--r-- | config/initializers/gitlab_experiment.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config/initializers/gitlab_experiment.rb b/config/initializers/gitlab_experiment.rb index 40b4c0dc4ee..a312755f300 100644 --- a/config/initializers/gitlab_experiment.rb +++ b/config/initializers/gitlab_experiment.rb @@ -2,5 +2,7 @@ Gitlab::Experiment.configure do |config| config.base_class = 'ApplicationExperiment' - config.cache = ApplicationExperiment::Cache.new + config.cache = Gitlab::Experiment::Cache::RedisHashStore.new( + pool: ->(&block) { Gitlab::Redis::SharedState.with { |redis| block.call(redis) } } + ) end |