View Source Hologram.Assets.ManifestCache behaviour (hologram v0.2.0)

Summary

Callbacks

Returns the key of the persistent term used by the asset manifest cache registered process.

Functions

Returns a specification to start this module under a supervisor.

Returns JavaScript code that builds the asset manifest object.

Returns the implementation of the asset manifest cache's persistent term key.

Reloads the the manifest cache data.

Starts asset manifest cache process.

Callbacks

persistent_term_key()

@callback persistent_term_key() :: any()

Returns the key of the persistent term used by the asset manifest cache registered process.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

get_manifest_js()

@spec get_manifest_js() :: String.t()

Returns JavaScript code that builds the asset manifest object.

persistent_term_key()

@spec persistent_term_key() :: any()

Returns the implementation of the asset manifest cache's persistent term key.

reload()

@spec reload() :: :ok

Reloads the the manifest cache data.

start_link(list)

@spec start_link(keyword()) :: GenServer.on_start()

Starts asset manifest cache process.