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

Method clear_cache

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

Source from the content-addressed store, hash-verified

560 /// It doesn't affect the on-disk storage.
561 #[cfg(test)]
562 pub fn clear_cache(&self) {
563 if let Ok(mut cache) = self.cache.write() {
564 cache.clear();
565 }
566 }
567
568 /// Get the number of entries currently in the cache.
569 #[cfg(test)]

Calls 2

clearMethod · 0.65
writeMethod · 0.45