ResourceCache.Callbacks (Resource Cache v0.0.1) View Source
Link to this section Summary
Link to this section Types
Specs
configure_hook() :: (() -> :ok | :unhook)
Specs
init_hook() :: (cache :: module() -> :ok | :unhook)
Specs
pre_update_hook() :: (cache :: module(), data :: [ResourceCache.resource()] -> :ok | :unhook)
Specs
t() :: %ResourceCache.Callbacks{ configure: [configure_hook() | term()], init: [init_hook() | term()], pre_update: [pre_update_hook() | term()], update: [ResourceCache.hook() | term()] }
Link to this section Functions
Specs
Specs
Specs
Specs
Specs
pre_update(t(), module(), [ResourceCache.resource()]) :: {:ok, t()}
Specs
Specs
Specs
update(t(), module(), ResourceCache.Changeset.t()) :: {:ok, t()}