Class: CurrencyExchange::Storage::Cache

Inherits:
Object
  • Object
show all
Defined in:
lib/currency_exchange/storage/cache.rb

Direct Known Subclasses

RailsCache

Constant Summary collapse

CACHE_STRATEGY =
{ :rails_cache => CurrencyExchange::Storage::RailsCache }

Class Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Class Attribute Details

.cache_strategyObject

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

.instanceObject



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