Skip to main content

InvestigationReportCache

Trait InvestigationReportCache 

Source
pub trait InvestigationReportCache: Send + Sync {
    // Required methods
    fn get(&self, key: &str) -> Option<InvestigationReport>;
    fn put(&self, key: String, report: InvestigationReport);
    fn invalidate(&self, key: &str);
    fn clear(&self);
}
Expand description

Cache abstraction for normalized investigation reports.

Implementations are expected to store cloned InvestigationReport values keyed by the hashed HAR payload and target class.

Required Methods§

Source

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

Look up a cached investigation report by cache key.

Source

fn put(&self, key: String, report: InvestigationReport)

Insert or replace a cached investigation report.

Source

fn invalidate(&self, key: &str)

Invalidate a single cache key.

Source

fn clear(&self)

Remove all cached entries.

Implementors§