Class: Flipper::Adapters::Dalli
- Defined in:
- lib/flipper/adapters/dalli.rb
Overview
Public: Adapter that wraps another adapter with the ability to cache adapter calls in Memcached using the Dalli gem.
Instance Attribute Summary
Attributes inherited from CacheBase
#adapter, #cache, #features_cache_key, #ttl
Instance Method Summary collapse
-
#initialize(adapter, cache, ttl = 0, prefix: nil) ⇒ Dalli
constructor
A new instance of Dalli.
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 = 0, prefix: nil) ⇒ Dalli
Returns a new instance of Dalli.
10 11 12 |
# File 'lib/flipper/adapters/dalli.rb', line 10 def initialize(adapter, cache, ttl = 0, prefix: nil) super end |