pub trait EvidenceOutcomeCache {
// Required methods
fn get(
&self,
evidence_id: &str,
) -> Result<Option<EvidenceOutcomeCacheEntry>, String>;
fn put(&mut self, entry: EvidenceOutcomeCacheEntry) -> Result<(), String>;
fn load(&self) -> Result<EvidenceOutcomeCacheArtifact, String>;
}Expand description
Narrow append/query contract for persisted evidence outcome caches.
Required Methods§
Sourcefn get(
&self,
evidence_id: &str,
) -> Result<Option<EvidenceOutcomeCacheEntry>, String>
fn get( &self, evidence_id: &str, ) -> Result<Option<EvidenceOutcomeCacheEntry>, String>
Load one cached outcome by evidence id.
§Errors
Returns an error if the backend cannot load the cache.