SuperCache.Cluster.Raft.Store (SuperCache v1.7.0)

Copy Markdown View Source

Owns the ETS tables used by the Raft adapter.

Table ownership lives here rather than in a Raft state machine or server so that a process restart does not lose the applied-index watermarks. The table is not durable across a full VM restart; the Raft log and snapshots are the durable state.

Summary

Functions

Returns the applied-index ETS table name.

Returns a specification to start this module under a supervisor.

Starts the Raft store GenServer.

Functions

applied_table()

@spec applied_table() :: atom()

Returns the applied-index ETS table name.

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts \\ [])

@spec start_link(keyword()) :: {:ok, pid()} | {:error, term()}

Starts the Raft store GenServer.