create_loading_cache_with_metrics

Function create_loading_cache_with_metrics 

Source
pub fn create_loading_cache_with_metrics<K, V, L>(
    policy: impl CachePolicy<K = K, V = V>,
    loader: Arc<L>,
) -> (DefaultLoadingCache<K, V, L>, Arc<LoadingCacheMetrics<K, V>>)
where K: Clone + Eq + Hash + Debug + Ord + Send + 'static, V: Clone + Debug + Send + 'static, L: CacheLoader<K = K, V = V>,