Spectre.Definition.Store.Memory (Spectre v0.3.0)

Copy Markdown View Source

Volatile in-memory reference implementation of Spectre.Definition.Store.

It is appropriate for conformance tests and entirely ephemeral Instances. The adapter explicitly reports :volatile, so core rejects it when a durable Checkpoint Store is configured.

Summary

Functions

Returns a specification to start this module under a supervisor.

Returns the number of published artifacts.

Starts an empty immutable artifact store.

Types

state()

@type state() :: %{id: term(), entries: %{optional(String.t()) => binary()}}

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

count(server)

@spec count(GenServer.server()) :: non_neg_integer()

Returns the number of published artifacts.

start_link(opts \\ [])

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

Starts an empty immutable artifact store.