Skip to main content

zlayer_consensus/storage/
mod.rs

1//! Storage implementations for the Raft log and state machine.
2//!
3//! Two backends are provided:
4//!
5//! - **`MemStore`** (feature `mem-store`, default): BTreeMap-based in-memory storage.
6//!   Suitable for testing and development. Data is lost on restart.
7//!
8//! - **`RedbStore`** (feature `redb-store`): Crash-safe persistent storage backed by
9//!   the `redb` embedded database. Suitable for production deployments.
10
11#[cfg(feature = "mem-store")]
12pub mod mem_store;
13
14#[cfg(feature = "redb-store")]
15pub mod redb_store;