Skip to main content

TableNameCache

Type Alias TableNameCache 

Source
pub type TableNameCache = CacheContainer<TableName, TableId, CacheIdent>;
Expand description

TableNameCache caches the TableName to TableId mapping.

Aliased Type§

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

Fields§

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