MCPcopy Create free account
hub / github.com/angular/angular / insert

Method insert

packages/compiler-cli/preprocessor/ng-analyze/src/utils/mod.rs:57–60  ·  view source on GitHub ↗

Insert a precomputed SharedQuery into the cache.

(&self, key: K, shared: crate::SharedQuery<V>)

Source from the content-addressed store, hash-verified

55
56 /// Insert a precomputed SharedQuery into the cache.
57 pub fn insert(&self, key: K, shared: crate::SharedQuery<V>) {
58 let mut write = self.map.write().unwrap();
59 write.insert(key, shared);
60 }
61
62 /// Remove a key from the cache.
63 pub fn remove(&self, key: &K) -> Option<crate::SharedQuery<V>> {

Callers 15

expand_globsFunction · 0.45
dirMethod · 0.45
fileMethod · 0.45
symlinkMethod · 0.45
test_missing_files_errorFunction · 0.45
test_contagionFunction · 0.45
test_exclude_worksFunction · 0.45

Calls 2

unwrapMethod · 0.65
writeMethod · 0.65