ExStorageService.Storage.ContentGC (ex_storage_service v0.6.4)

Copy Markdown View Source

Background process that periodically scans for unreferenced content files and removes them to reclaim disk space.

Content files are stored by their SHA-256 hash. This GC compares files on disk against content hashes referenced in metadata, and deletes any orphans.

Summary

Functions

Returns a specification to start this module under a supervisor.

Trigger a GC run manually (useful for testing).

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

run_now(server \\ __MODULE__)

Trigger a GC run manually (useful for testing).

start_link(opts \\ [])