Skip to main content

Module storage

Module storage 

Source
Expand description

Storage implementations for the Raft log and state machine.

Two backends are provided:

  • MemStore (feature mem-store, default): BTreeMap-based in-memory storage. Suitable for testing and development. Data is lost on restart.

  • RedbStore (feature redb-store): Crash-safe persistent storage backed by the redb embedded database. Suitable for production deployments.

Modulesยง

mem_store
In-memory storage implementation using the openraft v2 storage API.