Yatapp.Store behaviour (Yatapp v0.3.0) 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

Specs

delete(key :: term()) :: :ok

Deletes key from store.

Specs

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

Retrive value for given key.

Specs

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

Init function run when application starts.

Specs

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

Store value under given key.