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