Skip to main content

TableSchemaCache

Type Alias TableSchemaCache 

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

Aliased Type§

pub struct TableSchemaCache {
    name: String,
    cache: Cache<(usize, u32), Arc<SchemaName>>,
    invalidation: Invalidation<u32, Arc<SchemaName>, CacheIdent>,
    initializer: Arc<dyn Fn(&u32) -> Pin<Box<dyn Future<Output = Result<Option<Arc<SchemaName>>, Error>> + Send + '_>> + Send + Sync>,
    batch_initializer: Option<Arc<dyn Fn(Vec<u32>) -> Pin<Box<dyn Future<Output = Result<HashMap<u32, Arc<SchemaName>>, Error>> + Send>> + Send + Sync>>,
    epoch: Atomic<usize>,
}

Fields§

§name: String§cache: Cache<(usize, u32), Arc<SchemaName>>§invalidation: Invalidation<u32, Arc<SchemaName>, CacheIdent>§initializer: Arc<dyn Fn(&u32) -> Pin<Box<dyn Future<Output = Result<Option<Arc<SchemaName>>, Error>> + Send + '_>> + Send + Sync>§batch_initializer: Option<Arc<dyn Fn(Vec<u32>) -> Pin<Box<dyn Future<Output = Result<HashMap<u32, Arc<SchemaName>>, Error>> + Send>> + Send + Sync>>§epoch: Atomic<usize>