pub type TableInfoCache = CacheContainer<TableId, Arc<TableInfo>, CacheIdent>;Expand description
TableInfoCache caches the [TableId] to [TableInfo] mapping.
Aliased Type§
pub struct TableInfoCache {
name: String,
cache: Cache<u32, Arc<TableInfo>>,
invalidator: Box<dyn for<'a> Fn(&'a Cache<u32, Arc<TableInfo>>, &'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<TableInfo>>, Error>> + Send + '_>> + Sync + Send>,
token_filter: fn(&CacheIdent) -> bool,
}Fields§
§name: String§cache: Cache<u32, Arc<TableInfo>>§invalidator: Box<dyn for<'a> Fn(&'a Cache<u32, Arc<TableInfo>>, &'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<TableInfo>>, Error>> + Send + '_>> + Sync + Send>§token_filter: fn(&CacheIdent) -> bool