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

Method clear

nodedb/src/engine/timeseries/last_value_cache.rs:105–107  ·  view source on GitHub ↗

Clear all entries (e.g., on collection drop).

(&mut self)

Source from the content-addressed store, hash-verified

103
104 /// Clear all entries (e.g., on collection drop).
105 pub fn clear(&mut self) {
106 self.entries.clear();
107 }
108}
109
110impl Default for LastValueCache {

Callers 5

clear_cacheFunction · 0.45
drainMethod · 0.45
truncate_toMethod · 0.45
loadMethod · 0.45
clear_and_reloadMethod · 0.45

Calls

no outgoing calls

Tested by 1

clear_cacheFunction · 0.36