Class: Flipper::Adapters::RedisCache
- Defined in:
- lib/flipper/adapters/redis_cache.rb
Overview
Public: Adapter that wraps another adapter with the ability to cache adapter calls in Redis.
Instance Attribute Summary
Attributes inherited from CacheBase
#adapter, #cache, #features_cache_key, #ttl
Instance Method Summary collapse
-
#initialize(adapter, cache, ttl = 3600, prefix: nil) ⇒ RedisCache
constructor
A new instance of RedisCache.
Methods inherited from CacheBase
#add, #clear, #disable, #enable, #expire_feature_cache, #expire_features_cache, #feature_cache_key, #features, #get, #get_all, #get_multi, #remove
Methods included from Flipper::Adapter
#default_config, #export, #get_all, #get_multi, #import, included, #name, #read_only?
Constructor Details
#initialize(adapter, cache, ttl = 3600, prefix: nil) ⇒ RedisCache
Returns a new instance of RedisCache.
10 11 12 |
# File 'lib/flipper/adapters/redis_cache.rb', line 10 def initialize(adapter, cache, ttl = 3600, prefix: nil) super end |