Skip to main content

ViewInfoCache

Type Alias ViewInfoCache 

Source
pub type ViewInfoCache = CacheContainer<TableId, Arc<ViewInfoValue>, CacheIdent>;
Expand description

ViewInfoCache caches the [TableId] to ViewInfoValue mapping.

Aliased Type§

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

Fields§

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