LiveQuery.Core.Store behaviour (live_query_core v0.0.0-alpha.1)

Summary

Callbacks

Link to this callback

read(system, key)

@callback read(system :: atom(), key :: term()) :: {:ok, term()} | {:error, :not_found}
Link to this callback

set(system, key, value)

@callback set(system :: atom(), key :: term(), value) :: {:ok, value} when value: term()
Link to this callback

start_link(term)

@callback start_link(term()) :: {:ok, pid(), term()}
Link to this callback

unset(system, key)

@callback unset(system :: atom(), key :: term()) :: :ok

Functions

Link to this function

child_spec(system)

Link to this function

read(system, key)

Link to this function

set(system, key, value)

Link to this function

start_link(system)

Link to this function

unset(system, key)