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

Method cache_size

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

Source from the content-addressed store, hash-verified

687 /// Get the number of entries currently in the cache.
688 #[cfg(test)]
689 pub fn cache_size(&self) -> usize {
690 self.cache.read().map(|c| c.len()).unwrap_or(0)
691 }
692}

Callers

nothing calls this directly

Calls 2

readMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected