SuperCache.Cluster.Raft (SuperCache v1.7.0)

Copy Markdown View Source

Public façade for the opt-in Raft replication mode.

Every direct raft_ex call in SuperCache goes through this module (or the modules under SuperCache.Cluster.Raft), keeping the experimental upstream API behind one boundary. Commands are submitted to a partition's Raft group and only report success once the entry is committed and applied.

Summary

Functions

Submit a command to a partition's Raft group.

Functions

submit(partition_idx, command, opts \\ [])

@spec submit(non_neg_integer(), term(), keyword()) ::
  {:ok, term()} | {:error, SuperCache.Cluster.Error.t()}

Submit a command to a partition's Raft group.