Yatapp v0.2.5 Yatapp.Store behaviour View Source
Behaviour for implementing store backend for translations.
Link to this section Summary
Callbacks
Deletes key
from store
Retrive value
for given key
Init function run when application starts
Store value
under given key
Link to this section Callbacks
Link to this callback
delete(key)
View Source
delete(key)
View Source
delete(key :: term()) :: :ok
delete(key :: term()) :: :ok
Deletes key
from store.
Link to this callback
get(key) View Source
Retrive value
for given key
.
Link to this callback
init(options)
View Source
init(options)
View Source
init(options :: Keyword.t()) :: :ok
init(options :: Keyword.t()) :: :ok
Init function run when application starts.
Link to this callback
put(key, value) View Source
Store value
under given key
.