Skip to main content

EvidenceCache

Trait EvidenceCache 

Source
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§

Source

fn get(&self, key: &str) -> Option<EvidenceBundle>

Retrieve a cached bundle, or None if not present / expired.

Source

fn put(&self, key: &str, bundle: &EvidenceBundle)

Store a bundle under the given key.

Implementors§