Yatapp v0.2.6 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 :: term()) :: :ok

Deletes `key` from store.

Link to this callback

get(key) View Source
get(key :: term()) :: value :: term() | none()

Retrive `value` for given `key`.

Link to this callback

init(options) View Source
init(options :: Keyword.t()) :: :ok

Init function run when application starts.

Link to this callback

put(key, value) View Source
put(key :: term(), value :: term()) :: :ok

Store `value` under given `key`.