Class: CurrencyExchange::Storage::Cache
- Inherits:
-
Object
- Object
- CurrencyExchange::Storage::Cache
- Defined in:
- lib/currency_exchange/storage/cache.rb
Direct Known Subclasses
Constant Summary collapse
- CACHE_STRATEGY =
{ :rails_cache => CurrencyExchange::Storage::RailsCache }
Class Attribute Summary collapse
-
.cache_strategy ⇒ Object
Returns the value of attribute cache_strategy.
Class Method Summary collapse
Instance Method Summary collapse
Class Attribute Details
.cache_strategy ⇒ Object
Returns the value of attribute cache_strategy.
7 8 9 |
# File 'lib/currency_exchange/storage/cache.rb', line 7 def cache_strategy @cache_strategy end |
Class Method Details
.instance ⇒ Object
9 10 11 |
# File 'lib/currency_exchange/storage/cache.rb', line 9 def instance @instance ||= load_instance end |
Instance Method Details
#fetch(key) ⇒ Object
14 15 |
# File 'lib/currency_exchange/storage/cache.rb', line 14 def fetch(key) end |
#store(key, value) ⇒ Object
17 18 19 |
# File 'lib/currency_exchange/storage/cache.rb', line 17 def store(key, value) value end |