pub trait CacheLoader:
Debug
+ Send
+ Sync
+ 'static {
type K: Debug + Hash + Send + 'static;
type V: Debug + Send + 'static;
type Extra: Debug + Send + 'static;
// Required method
fn load<'life0, 'async_trait>(
&'life0 self,
k: Self::K,
extra: Self::Extra,
) -> Pin<Box<dyn Future<Output = Self::V> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Loader for missing Cache entries.