mix spectre.gen.checkpoint_store (Spectre v0.3.4)

Copy Markdown View Source

Generates an in-memory Instance CheckpointStore adapter and conformance test.

mix spectre.gen.checkpoint_store MyApp.SpectreCheckpointStore

The generated adapter includes compare-and-swap plus atomic erasure markers and runs both public conformance gates. It is intentionally process-local and intended for tests and development. Replace it with durable storage for production. Files are never overwritten unless --force is passed. --dry-run changes no files.

Options

  • --dry-run - print the files that would be generated;
  • --force - replace existing regular files.