pub type TableInfoCache = CacheContainer<TableId, Arc<TableInfo>, CacheIdent>;
Expand description
TableInfoCache caches the [TableId] to [TableInfo] mapping.
Aliased Type§
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>> + Send + Sync>,
initializer: Arc<dyn Fn(&u32) -> Pin<Box<dyn Future<Output = Result<Option<Arc<TableInfo>>, Error>> + Send + '_>> + Send + Sync>,
token_filter: Box<dyn Fn(&CacheIdent) -> bool + Send + Sync>,
}
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>> + Send + Sync>
§initializer: Arc<dyn Fn(&u32) -> Pin<Box<dyn Future<Output = Result<Option<Arc<TableInfo>>, Error>> + Send + '_>> + Send + Sync>
§token_filter: Box<dyn Fn(&CacheIdent) -> bool + Send + Sync>