Builds the default Raft command contract for compound-key writes.
Router and the remaining Shard Raft-proxy helpers must use this module
instead of hand-building equivalent tuples. Custom/direct shard calls still
carry the Redis key because the local shard handler needs it for promotion and
index bookkeeping; replicated default-instance commands keep the lean shape
applied by Ferricstore.Raft.StateMachine.
Summary
Types
@type batch_put_entry() :: {binary(), binary(), non_neg_integer()}
Functions
@spec batch_put(binary(), [batch_put_entry()]) :: {:compound_batch_put, binary(), [batch_put_entry()]}
@spec put(binary(), binary(), non_neg_integer()) :: {:compound_put, binary(), binary(), non_neg_integer()}