Money v3.4.2 Money.ExchangeRates.Cache.Dets View Source
Money.ExchangeRates.Cache implementation for :dets
Link to this section Summary
Functions
Returns the exchange rates for a given date.
Initialize the cache when the exchange rates retriever is started
Retrieve the latest exchange rates from the cache.
Store the historic exchange rates for a given date in the cache.
Store the latest exchange rates in the cache.
Terminate the cache when the retriver process stops normally
Link to this section Functions
get(key) View Source
historic_rates(date) View Source
Returns the exchange rates for a given date.
Callback implementation for Money.ExchangeRates.Cache.historic_rates/1
.
init() View Source
Initialize the cache when the exchange rates retriever is started
Callback implementation for Money.ExchangeRates.Cache.init/0
.
last_updated() View Source
latest_rates() View Source
Retrieve the latest exchange rates from the cache.
Callback implementation for Money.ExchangeRates.Cache.latest_rates/0
.
put(key, value) View Source
store_historic_rates(rates, date) View Source
Store the historic exchange rates for a given date in the cache.
Callback implementation for Money.ExchangeRates.Cache.store_historic_rates/2
.
store_latest_rates(rates, retrieved_at) View Source
Store the latest exchange rates in the cache.
Callback implementation for Money.ExchangeRates.Cache.store_latest_rates/2
.
terminate() View Source
Terminate the cache when the retriver process stops normally
Callback implementation for Money.ExchangeRates.Cache.terminate/0
.