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

Method clear_cache

atomic-repository/src/changestore/mod.rs:681–685  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

679 /// It doesn't affect the on-disk storage.
680 #[cfg(test)]
681 pub fn clear_cache(&self) {
682 if let Ok(mut cache) = self.cache.write() {
683 cache.clear();
684 }
685 }
686
687 /// Get the number of entries currently in the cache.
688 #[cfg(test)]

Calls 2

clearMethod · 0.65
writeMethod · 0.45