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

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

module Gitlab
  module Redis
    class RateLimiting < ::Gitlab::Redis::Wrapper
      # The data we store on RateLimiting used to be stored on Cache.
      def self.config_fallback
        Cache
      end

      def self.cache_store
        @cache_store ||= ActiveSupport::Cache::RedisCacheStore.new(redis: pool, namespace: Cache::CACHE_NAMESPACE)
      end
    end
  end
end