PhoenixAssetPipeline.Manifest (phoenix_asset_pipeline v2.0.2)

Copy Markdown View Source

Runtime storage for the asset manifest.

Without a precompiled manifest, indexed generations are stored in ETS behind this GenServer. In production, a generated PhoenixAssetPipeline.Manifest.Precompiled module provides one immutable manifest literal.

Summary

Functions

Returns the cache file path used in :cached manifest mode.

Returns a specification to start this module under a supervisor.

Reads a nested manifest value by section and key.

Reads a manifest value by key.

Replaces the stored manifest.

Captures the current manifest generation for process-local consistent reads.

Temporarily overrides the process-local manifest snapshot.

Restores a manifest snapshot returned by put_snapshot/0 or put_snapshot/1.

Writes the manifest as a generated BEAM module for production releases.

Functions

cache_path()

Returns the cache file path used in :cached manifest mode.

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

find(term, key)

Reads a nested manifest value by section and key.

get(term, default \\ nil)

Reads a manifest value by key.

put(manifest)

Replaces the stored manifest.

put_snapshot()

Captures the current manifest generation for process-local consistent reads.

put_snapshot(manifest)

Temporarily overrides the process-local manifest snapshot.

restore_snapshot(previous)

Restores a manifest snapshot returned by put_snapshot/0 or put_snapshot/1.

save_cached(manifest)

save_precompiled!(manifest, path \\ precompiled_beam_path())

Writes the manifest as a generated BEAM module for production releases.