MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / len

Method len

nodedb/src/control/gateway/plan_cache.rs:217–220  ·  view source on GitHub ↗

Number of cached plans.

(&self)

Source from the content-addressed store, hash-verified

215
216 /// Number of cached plans.
217 pub fn len(&self) -> usize {
218 let inner = self.inner.lock().unwrap_or_else(|p| p.into_inner());
219 inner.entries.len()
220 }
221
222 pub fn is_empty(&self) -> bool {
223 self.len() == 0

Callers 4

fuse_payloadsFunction · 0.45
insertMethod · 0.45
is_emptyMethod · 0.45

Calls 1

lockMethod · 0.80

Tested by

no test coverage detected