pub trait EvidenceCache: Send + Sync {
// Required methods
fn get(&self, key: &str) -> Option<EvidenceBundle>;
fn put(&self, key: &str, bundle: &EvidenceBundle);
}Expand description
Trait for caching collected evidence bundles.
Implementors store and retrieve EvidenceBundle by a string key,
enabling incremental verification and multi-policy evaluation without
redundant API calls.
Required Methods§
Sourcefn get(&self, key: &str) -> Option<EvidenceBundle>
fn get(&self, key: &str) -> Option<EvidenceBundle>
Retrieve a cached bundle, or None if not present / expired.
Sourcefn put(&self, key: &str, bundle: &EvidenceBundle)
fn put(&self, key: &str, bundle: &EvidenceBundle)
Store a bundle under the given key.