MCPcopy Create free account
hub / github.com/Rustixir/darkbird / stash

Method stash

src/darkbird/wal/memory_page.rs:22–26  ·  view source on GitHub ↗
(&mut self, rquery: RQuery<K, Doc>)

Source from the content-addressed store, hash-verified

20 }
21
22 pub fn stash(&mut self, rquery: RQuery<K, Doc>) {
23 let (type_id, key, doc) = rquery.into_raw();
24 let time = Instant::now();
25 self.mapper.insert((type_id, key), (time, doc));
26 }
27
28
29 pub fn get_page(self) -> Vec<(Instant, RQuery<K, Doc>)> {

Callers 1

internal_startMethod · 0.80

Calls 2

into_rawMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected