common_meta::cache::table::table_schema

Type Alias TableSchemaCache

source
pub type TableSchemaCache = CacheContainer<TableId, Arc<SchemaName>, CacheIdent>;

Aliased Type§

struct TableSchemaCache {
    name: String,
    cache: Cache<u32, Arc<SchemaName>>,
    invalidator: Box<dyn for<'a> Fn(&'a Cache<u32, Arc<SchemaName>>, &'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<SchemaName>>, Error>> + Send + '_>> + Send + Sync>,
    token_filter: fn(_: &CacheIdent) -> bool,
}

Fields§

§name: String§cache: Cache<u32, Arc<SchemaName>>§invalidator: Box<dyn for<'a> Fn(&'a Cache<u32, Arc<SchemaName>>, &'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<SchemaName>>, Error>> + Send + '_>> + Send + Sync>§token_filter: fn(_: &CacheIdent) -> bool