Skip to main content

vyre_runtime/pipeline_cache/
mod.rs

1//! Content-addressed neutral-artifact cache.
2//!
3//! [`PipelineFingerprint`] derives directly from the authenticated neutral
4//! [`vyre_megakernel::Artifact`] identity. Dispatch inputs, target payloads,
5//! device generations, and runtime policy do not enter this layer's key.
6//! Persisted blobs use a versioned, digest-bound frame and stale versions miss
7//! rather than being served.
8//!
9//! Hot paths use [`InMemoryPipelineCache`], process-restart reuse uses
10//! [`DiskCache`], and callers compose them through [`LayeredPipelineCache`].
11
12#![allow(clippy::missing_const_for_thread_local, clippy::explicit_auto_deref)]
13
14mod disk;
15mod fingerprint;
16mod in_memory;
17mod layered;
18mod metrics;
19#[cfg(feature = "remote-cache")]
20mod remote;
21mod store;
22
23#[cfg(test)]
24pub(super) mod test_helpers;
25
26pub use disk::{DiskCache, DiskCacheDurabilityReport, DiskCacheError};
27pub use fingerprint::PipelineFingerprint;
28pub use in_memory::{InMemoryEvictionReason, InMemoryEvictionReport, InMemoryPipelineCache};
29pub use layered::{LayeredPipelineCache, LayeredPromotionReport};
30pub use metrics::{PipelineCacheMetricError, PipelineCacheMetrics};
31#[cfg(feature = "remote-cache")]
32pub use remote::RemoteCache;
33pub use store::PipelineCacheStore;