Benefit Hypothesis
Vaporator.Cache uses :ets directly and Vaporator.Settings using PeristentStorage abstraction on top of :ets. It doesn't make sense to have two methods for storing data using :ets. The erlang DBMS :mnesia will take care of both use cases and consolidate how data is stored.
Acceptance Criteria
Replace Vaporator.Cache with Memento
Replace Vaporator.Settings with Memento
Vaporator.Settings must persist to disk to avoid having to set settings on each restart
Benefit Hypothesis Vaporator.Cache uses
:ets
directly andVaporator.Settings
usingPeristentStorage
abstraction on top of:ets
. It doesn't make sense to have two methods for storing data using:ets
. The erlang DBMS:mnesia
will take care of both use cases and consolidate how data is stored.Acceptance Criteria
Vaporator.Cache
withMemento
Vaporator.Settings
withMemento
Vaporator.Settings
must persist to disk to avoid having to set settings on each restart