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

Method get

nodedb/src/engine/kv/hash_table/api.rs:18–20  ·  view source on GitHub ↗

Get a value by key. Returns None if not found or expired. Checks the primary table first, then the rehash source (if active). Expired keys return None (lazy expiry fallback).

(&self, key: &[u8], now_ms: u64)

Source from the content-addressed store, hash-verified

16 /// Checks the primary table first, then the rehash source (if active).
17 /// Expired keys return None (lazy expiry fallback).
18 pub fn get(&self, key: &[u8], now_ms: u64) -> Option<&[u8]> {
19 self.get_with_surrogate(key, now_ms).map(|(v, _)| v)
20 }
21
22 /// Get the value AND the row's stable surrogate for a key. Used by
23 /// the clone-delegated read path to filter rows whose binding was

Callers 10

insertMethod · 0.45
rankMethod · 0.45
get_sort_keyMethod · 0.45
windowed_rangeFunction · 0.45
on_putMethod · 0.45
on_deleteMethod · 0.45
has_indexesMethod · 0.45
get_indexMethod · 0.45
key_for_surrogateMethod · 0.45

Calls 1

get_with_surrogateMethod · 0.45

Tested by

no test coverage detected