Persist (Persist v0.1.0-pre)
A simple KV for doma.
Link to this section Summary
Functions
Saves state into file system and returns the state it saved or crashes.
Link to this section Functions
Link to this function
get_db_path(host \\ nil)
Specs
get_db_path(atom() | nil) :: Uptight.Text.t()
Link to this function
get_key_path(module, host \\ nil)
Specs
get_key_path(atom(), atom() | nil) :: Uptight.Text.t()
Link to this function
load_state(module, host \\ nil)
Specs
Link to this function
save_state(state, module, host \\ nil)
Specs
Saves state into file system and returns the state it saved or crashes.
NB! No functions allowed.