pub type TableRouteCache = CacheContainer<TableId, Arc<TableRoute>, CacheIdent>;Expand description
TableRouteCache caches the TableId to TableRoute mapping.
Aliased Type§
pub struct TableRouteCache {
    name: String,
    cache: Cache<u32, Arc<TableRoute>>,
    invalidator: Box<dyn for<'a> Fn(&'a Cache<u32, Arc<TableRoute>>, &'a CacheIdent) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>> + Sync + Send>,
    initializer: Arc<dyn Fn(&u32) -> Pin<Box<dyn Future<Output = Result<Option<Arc<TableRoute>>, Error>> + Send + '_>> + Sync + Send>,
    token_filter: fn(&CacheIdent) -> bool,
}Fields§
§name: String§cache: Cache<u32, Arc<TableRoute>>§invalidator: Box<dyn for<'a> Fn(&'a Cache<u32, Arc<TableRoute>>, &'a CacheIdent) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>> + Sync + Send>§initializer: Arc<dyn Fn(&u32) -> Pin<Box<dyn Future<Output = Result<Option<Arc<TableRoute>>, Error>> + Send + '_>> + Sync + Send>§token_filter: fn(&CacheIdent) -> bool