Skip to main content

TableFlownodeSetCache

Type Alias TableFlownodeSetCache 

Source
pub type TableFlownodeSetCache = CacheContainer<TableId, Arc<HashMap<FlowIdent, Peer>>, CacheIdent>;
Expand description

TableFlownodeSetCache caches the TableId to [FlownodeSet] mapping.

Aliased Type§

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

Fields§

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