Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cache.rb « redis « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 98b66080b42a26ae7551d382e80a26c42b1af698 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

module Gitlab
  module Redis
    class Cache < ::Gitlab::Redis::Wrapper
      CACHE_NAMESPACE = 'cache:gitlab'

      private

      def raw_config_hash
        config = super
        config[:url] = 'redis://localhost:6380' if config[:url].blank?
        config
      end
    end
  end
end