Skip to main content

eredu_core/
cache.rs

1//! Portable cache/state policy and prompt-cache schemas.
2//!
3//! Runtime ownership, admission, storage transitions, and backing-store
4//! scheduling live in `eredu-runtime` so this crate remains declarative.
5
6mod policy;
7mod prompt;
8
9pub use policy::{
10    CacheBlockId, CachePolicyError, CacheRankIdentity, CacheRepresentation, CacheTier,
11    LayerCachePolicy, MutableStateResidency, PoolingStateComponent, StateComponentPolicy,
12    StateComponentRole, StateResidencyClass, StateTensorDimension, StateTensorDtype,
13    StateTensorOwner, StateTensorPolicy, StateTensorPresence, StateTensorRole,
14};
15pub use prompt::{
16    derive_prompt_cache_architecture_fingerprint, prompt_cache_token_fingerprint,
17    validate_prompt_cache_model_identity, PromptCacheBlock, PromptCacheDescriptor,
18    PromptCacheError, PromptCacheManifest, PromptCacheModelIdentity, PromptCacheOptions,
19    PromptCacheStateSegment, PromptCacheStateTensor, PromptCacheTopology,
20    PROMPT_CACHE_SCHEMA_VERSION,
21};