pub trait GroupingCache {
// Required methods
fn get(&self, key: &str) -> Result<Option<String>, EngineError>;
fn put(&self, key: &str, response: &str) -> Result<(), EngineError>;
}Expand description
The grouping cache (ADR 0009).
The stored value is the RAW model response, so audit and assembly stay pure functions replayed on load and their fixes apply to cached runs too.
Keys are opaque hex from grouping::cache_key. An implementation MUST
treat them as opaque and MUST NOT derive, namespace or truncate them: the
key composition pins every existing cache entry in every checkout.
Required Methods§
fn get(&self, key: &str) -> Result<Option<String>, EngineError>
fn put(&self, key: &str, response: &str) -> Result<(), EngineError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".