MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / evict

Method evict

atomic-repository/src/changestore/mod.rs:670–674  ·  view source on GitHub ↗

Evict one cached object after an externally journaled deletion.

(&self, hash: &Hash)

Source from the content-addressed store, hash-verified

668
669 /// Evict one cached object after an externally journaled deletion.
670 pub fn evict(&self, hash: &Hash) {
671 if let Ok(mut cache) = self.cache.write() {
672 cache.remove(hash);
673 }
674 }
675
676 /// Clear the in-memory cache.
677 ///

Callers 1

Calls 2

removeMethod · 0.65
writeMethod · 0.45

Tested by

no test coverage detected