Class: Gitlab::Redis::FeatureFlag
- Defined in:
- lib/gitlab/redis/feature_flag.rb
Constant Summary collapse
- FeatureFlagStore =
Class.new(ActiveSupport::Cache::RedisCacheStore)
Constants inherited from Wrapper
Class Method Summary collapse
- .cache_store ⇒ Object
-
.config_fallback ⇒ Object
The data we store on FeatureFlag is currently stored on Cache.
Methods inherited from Wrapper
config_file_name, config_file_path, #db, #initialize, instrumentation_class, #params, pool, pool_size, rails_root, redis_yml_path, #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
14 15 16 17 18 19 20 21 22 |
# File 'lib/gitlab/redis/feature_flag.rb', line 14 def cache_store @cache_store ||= FeatureFlagStore.new( redis: pool, pool: false, compress: Gitlab::Utils.to_boolean(ENV.fetch('ENABLE_REDIS_CACHE_COMPRESSION', '1')), namespace: Cache::CACHE_NAMESPACE, expires_in: 1.hour ) end |
.config_fallback ⇒ Object
The data we store on FeatureFlag is currently stored on Cache.
10 11 12 |
# File 'lib/gitlab/redis/feature_flag.rb', line 10 def config_fallback Cache end |