Skip to main content

Crate nms_cache

Crate nms_cache 

Source
Expand description

Zero-copy serialization cache for NMS Copilot.

Serializes the in-memory GalaxyModel discovery data to an rkyv archive for near-instant startup on subsequent runs. Indices are rebuilt on load.

Re-exports§

pub use data::CacheData;
pub use error::CacheError;
pub use freshness::is_cache_fresh;
pub use freshness::load_or_rebuild;
pub use serialize::extract_cache_data;
pub use serialize::read_cache;
pub use serialize::rebuild_model;
pub use serialize::write_cache;

Modules§

data
Cache data types – the subset of GalaxyModel that gets serialized.
error
Cache error types.
freshness
Cache freshness checking.
serialize
Serialize and deserialize galaxy data to/from rkyv archives.