pub type ViewInfoCache = CacheContainer<TableId, Arc<ViewInfoValue>, CacheIdent>;
Expand description
ViewInfoCache caches the [TableId] to ViewInfoValue mapping.
Aliased Type§
struct ViewInfoCache {
name: String,
cache: Cache<u32, Arc<ViewInfoValue>>,
invalidator: Box<dyn for<'a> Fn(&'a Cache<u32, Arc<ViewInfoValue>>, &'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<ViewInfoValue>>, Error>> + Send + '_>> + Send + Sync>,
token_filter: Box<dyn Fn(&CacheIdent) -> bool + Send + Sync>,
}
Fields§
§name: String
§cache: Cache<u32, Arc<ViewInfoValue>>
§invalidator: Box<dyn for<'a> Fn(&'a Cache<u32, Arc<ViewInfoValue>>, &'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<ViewInfoValue>>, Error>> + Send + '_>> + Send + Sync>
§token_filter: Box<dyn Fn(&CacheIdent) -> bool + Send + Sync>