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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/redis/rate_limiting.rb')
-rw-r--r--lib/gitlab/redis/rate_limiting.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/gitlab/redis/rate_limiting.rb b/lib/gitlab/redis/rate_limiting.rb
index 74b4ca12d18..30ec44b748d 100644
--- a/lib/gitlab/redis/rate_limiting.rb
+++ b/lib/gitlab/redis/rate_limiting.rb
@@ -3,18 +3,11 @@
module Gitlab
module Redis
class RateLimiting < ::Gitlab::Redis::Wrapper
- # We create a subclass only for the purpose of differentiating between different stores in cache metrics
- RateLimitingStore = Class.new(ActiveSupport::Cache::RedisCacheStore)
-
class << self
# The data we store on RateLimiting used to be stored on Cache.
def config_fallback
Cache
end
-
- def cache_store
- @cache_store ||= RateLimitingStore.new(redis: pool, namespace: Cache::CACHE_NAMESPACE)
- end
end
end
end