pub trait Cache: Send + Sync {
// Required methods
fn contains(&self, key: &str) -> bool;
fn insert(&self, key: String, value: Vec<u8>);
fn get(&self, key: &str) -> Option<Vec<u8>>;
}Expand description
Minimal read/write interface required by the prefetcher.
Implementors must be Send + Sync so the prefetcher can issue async-style
warm operations from background contexts.