Class: Gitlab::Redis::RateLimiting
- Defined in:
- lib/gitlab/redis/rate_limiting.rb
Class Method Summary collapse
- .cache_store ⇒ Object
-
.config_fallback ⇒ Object
The data we store on RateLimiting used to be stored on Cache.
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_store ⇒ Object
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_fallback ⇒ Object
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 |