Exd v0.1.34 Exd.Store.Adapter behaviour View Source

Behaviour for windowing stores

Link to this section Summary

Callbacks

Delete the value from the store if one is present

Get the value corresponding to this key

Get the value corresponding to this key

Update the value associated with this key

Link to this section Callbacks

Link to this callback delete(key) View Source
delete(key()) :: :ok | {:error, term()}

Delete the value from the store if one is present

Link to this callback get(key) View Source
get(key()) :: {:ok, value()}

Get the value corresponding to this key.

Link to this callback init(keyword) View Source
init(keyword()) :: {:ok, map()}

Get the value corresponding to this key.

Link to this callback put(key, value) View Source
put(key(), value()) :: :ok | {:error, term()}

Update the value associated with this key