pub trait AggregationCacheBackend: Send + Sync {
// Required methods
fn namespace(&self) -> &str;
fn get(&self, key: &str, max_age_millis: u64) -> Option<Vec<Record>>;
fn put(&self, key: String, rows: Vec<Record>);
fn invalidate_namespace(&self, namespace: &str);
}Required Methods§
fn namespace(&self) -> &str
fn get(&self, key: &str, max_age_millis: u64) -> Option<Vec<Record>>
fn put(&self, key: String, rows: Vec<Record>)
fn invalidate_namespace(&self, namespace: &str)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".