summaryrefslogtreecommitdiff
path: root/lib/gitlab/redis/cache.rb
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