evoq_checkpoint_store_ets (evoq v1.5.0)

View Source

ETS-based checkpoint store implementation.

In-memory checkpoint storage for development and testing. For production, use a persistent implementation (e.g., database-backed).

Note: Checkpoints are lost on application restart. Use only for development or projections that can easily rebuild.

Summary

Functions

Delete checkpoint for a projection.

Load checkpoint for a projection.

Save checkpoint for a projection.

Start the checkpoint store.

Functions

delete(ProjectionName)

-spec delete(atom()) -> ok.

Delete checkpoint for a projection.

load(ProjectionName)

-spec load(atom()) -> {ok, non_neg_integer()} | {error, not_found}.

Load checkpoint for a projection.

save(ProjectionName, Checkpoint)

-spec save(atom(), non_neg_integer()) -> ok.

Save checkpoint for a projection.

start_link()

-spec start_link() -> {ok, pid()} | {error, term()}.

Start the checkpoint store.