Persist (Persist v0.1.0-pre)

A simple KV for doma.

Link to this section Summary

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

load_state(atom(), atom() | nil) :: any()
Link to this function

save_state(state, module, host \\ nil)

Specs

save_state(any(), atom(), atom() | nil) :: any()

Saves state into file system and returns the state it saved or crashes.

NB! No functions allowed.