ResourceCache.Compiler behaviour (Resource Cache v0.0.4) View Source

Link to this section Summary

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

filter(data, filter, acc \\ [])

View Source

Specs

filter([map()], (map() -> boolean()), [map()]) :: [map()]

Specs

generate(ResourceCache.Config.t()) :: term()

Specs

implement(ResourceCache.Config.t()) :: :ok
Link to this function

map(data, mapper, acc \\ [])

View Source

Specs

map([map()], (map() -> map()), [map()]) :: [map()]

Link to this section Callbacks

Specs

generate(ResourceCache.Config.t()) :: term()

Specs

update(module(), ResourceCache.Changeset.t()) :: :ok | {:error, atom()}