common_meta::cache::table::schema

Type Alias SchemaCache

source
pub type SchemaCache = CacheContainer<SchemaName, Arc<SchemaNameValue>, CacheIdent>;

Aliased Type§

struct SchemaCache {
    name: String,
    cache: Cache<SchemaName, Arc<SchemaNameValue>>,
    invalidator: Box<dyn for<'a> Fn(&'a Cache<SchemaName, Arc<SchemaNameValue>>, &'a CacheIdent) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>> + Send + Sync>,
    initializer: Arc<dyn Fn(&SchemaName) -> Pin<Box<dyn Future<Output = Result<Option<Arc<SchemaNameValue>>, Error>> + Send + '_>> + Send + Sync>,
    token_filter: fn(_: &CacheIdent) -> bool,
}

Fields§

§name: String§cache: Cache<SchemaName, Arc<SchemaNameValue>>§invalidator: Box<dyn for<'a> Fn(&'a Cache<SchemaName, Arc<SchemaNameValue>>, &'a CacheIdent) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>> + Send + Sync>§initializer: Arc<dyn Fn(&SchemaName) -> Pin<Box<dyn Future<Output = Result<Option<Arc<SchemaNameValue>>, Error>> + Send + '_>> + Send + Sync>§token_filter: fn(_: &CacheIdent) -> bool