vantage_live/lib.rs
1//! # vantage-live
2//!
3//! A write-through cache layer that wraps any `AnyTable` (the "master") and
4//! adds a local cache plus an optional event stream. Reads consult the cache
5//! first; misses fall through to the master and populate the cache on the way
6//! back. Writes are queued on a worker task and applied to the master, then
7//! the cache is invalidated. An optional [`LiveStream`] keeps the cache in
8//! sync with out-of-band changes (SurrealDB LIVE, Kafka, etc.).
9//!
10//! See `DESIGN.md` in this crate for the architectural rationale.
11
12pub mod cache;
13pub mod live_stream;
14pub mod live_table;
15pub mod prelude;
16
17pub use cache::{Cache, CachedRows};
18pub use live_stream::{LiveEvent, LiveStream, ManualLiveStream};
19pub use live_table::LiveTable;