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

Method clear

atomic-remote/src/sync.rs:216–221  ·  view source on GitHub ↗

Clear all cached state.

(&mut self)

Source from the content-addressed store, hash-verified

214
215 /// Clear all cached state.
216 pub fn clear(&mut self) {
217 self.entries.clear();
218 self.last_sequence = None;
219 self.last_state = None;
220 self.last_tag_state = None;
221 }
222
223 /// Get all entries at or after a given sequence number.
224 pub fn entries_from(&self, from_sequence: u64) -> Vec<(u64, &Node)> {

Callers

nothing calls this directly

Calls 1

clearMethod · 0.65

Tested by

no test coverage detected