Lines Matching refs:cache
138 pub struct ModuleCacheEntry<'cache>(Option<ModuleCacheEntryInner<'cache>>);
140 struct ModuleCacheEntryInner<'cache> {
142 cache: &'cache Cache, field
147 impl<'cache> ModuleCacheEntry<'cache> {
149 pub fn new(compiler_name: &str, cache: Option<&'cache Cache>) -> Self { in new()
150 Self(cache.map(|cache| ModuleCacheEntryInner::new(compiler_name, cache))) in new()
154 fn from_inner(inner: ModuleCacheEntryInner<'cache>) -> Self { in from_inner()
207 inner.cache.on_cache_get_async(&mod_cache_path); // call on success in get_data_raw()
215 inner.cache.on_cache_update_async(&mod_cache_path); // call on success in get_data_raw()
222 impl<'cache> ModuleCacheEntryInner<'cache> {
223 fn new(compiler_name: &str, cache: &'cache Cache) -> Self { in new()
257 let root_path = cache.directory().join("modules").join(compiler_dir); in new()
259 Self { root_path, cache } in new()
277 self.cache.baseline_compression_level(), in update_data()