Skip to main content

origin_storage/
lib.rs

1//! Local storage: cache, read models, sync metadata, settings (ADR-0008).
2//!
3//! External services stay Source of Truth. Deleting the local store must never lose
4//! user data.
5//!
6//! [`Storage`] is deliberately dumb persistence — it stores and returns records as
7//! given. Expiry is enforced one layer up, by [`Cache`], so that every backend behaves
8//! identically regardless of what it can express natively.
9
10mod cache;
11mod memory;
12pub mod namespace;
13mod store;
14
15#[cfg(feature = "testing")]
16pub mod contract;
17
18pub use cache::Cache;
19pub use memory::MemoryStorage;
20pub use store::{Record, Storage, StorageKey};