Class: Gitlab::Redis::Cache
- Defined in:
- lib/gitlab/redis/cache.rb
Constant Summary collapse
- CACHE_NAMESPACE =
'cache:gitlab'
Class Method Summary collapse
-
.active_support_config ⇒ Object
Full list of options: api.rubyonrails.org/classes/ActiveSupport/Cache/RedisCacheStore.html#method-c-new.
Methods inherited from Wrapper
_raw_config, config_fallback, 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
.active_support_config ⇒ Object
Full list of options: api.rubyonrails.org/classes/ActiveSupport/Cache/RedisCacheStore.html#method-c-new
10 11 12 13 14 15 16 17 |
# File 'lib/gitlab/redis/cache.rb', line 10 def self.active_support_config { redis: pool, compress: Gitlab::Utils.to_boolean(ENV.fetch('ENABLE_REDIS_CACHE_COMPRESSION', '1')), namespace: CACHE_NAMESPACE, expires_in: 2.weeks # Cache should not grow forever } end |