flux_middle::queries

Function run_with_cache

Source
fn run_with_cache<K, V>(
    cache: &RefCell<UnordMap<K, V>>,
    key: K,
    f: impl FnOnce() -> V,
) -> V
where K: Hash + Eq, V: Clone,