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

Method cached_module_count

nodedb/src/control/planner/wasm/runtime.rs:80–85  ·  view source on GitHub ↗

Number of cached compiled modules.

(&self)

Source from the content-addressed store, hash-verified

78
79 /// Number of cached compiled modules.
80 pub fn cached_module_count(&self) -> usize {
81 self.module_cache
82 .lock()
83 .unwrap_or_else(|p| p.into_inner())
84 .len()
85 }
86
87 /// Clear the compilation cache.
88 pub fn clear_cache(&self) {

Callers 1

fmtMethod · 0.80

Calls 2

lockMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected