Money v2.2.2 Money.ExchangeRates.Cache.Dets View Source

Money.ExchangeRates.Cache implementation for :dets

Link to this section Summary

Functions

Return the value for a given key in the cache

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

Put the given value under the given key in 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

Return the value for a given key in the cache.

Callback implementation for Money.ExchangeRates.Cache.get/1.

Returns the exchange rates for a given date.

Callback implementation for Money.ExchangeRates.Cache.historic_rates/1.

Initialize the cache when the exchange rates retriever is started

Callback implementation for Money.ExchangeRates.Cache.init/0.

Retrieve the latest exchange rates from the cache.

Callback implementation for Money.ExchangeRates.Cache.latest_rates/0.

Put the given value under the given key in the cache.

Callback implementation for Money.ExchangeRates.Cache.put/2.

Link to this function 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.

Link to this function 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 the cache when the retriver process stops normally

Callback implementation for Money.ExchangeRates.Cache.terminate/0.