Class: Gitlab::Redis::RateLimiting

Inherits:
Wrapper
  • Object
show all
Defined in:
lib/gitlab/redis/rate_limiting.rb

Class Method Summary collapse

Methods inherited from Wrapper

_raw_config, config_fallback?, config_file_name, config_file_path, #db, #initialize, instrumentation_class, #params, pool, pool_size, rails_root, #sentinels, #sentinels?, #store, store_name, #url, version, with

Constructor Details

This class inherits a constructor from Gitlab::Redis::Wrapper

Class Method Details

.cache_storeObject


11
12
13
# File 'lib/gitlab/redis/rate_limiting.rb', line 11

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

.config_fallbackObject

The data we store on RateLimiting used to be stored on Cache.


7
8
9
# File 'lib/gitlab/redis/rate_limiting.rb', line 7

def self.config_fallback
  Cache
end