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

Function invalidate_removes_entry

nodedb/src/engine/sparse/doc_cache.rs:400–405  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

398
399 #[test]
400 fn invalidate_removes_entry() {
401 let mut cache = DocCache::new(16);
402 cache.put(0, 1, "users", "u1", b"alice");
403 cache.invalidate(0, 1, "users", "u1");
404 assert_eq!(cache.get(0, 1, "users", "u1"), None);
405 }
406
407 #[test]
408 fn tenant_isolation() {

Callers

nothing calls this directly

Calls 2

putMethod · 0.45
invalidateMethod · 0.45

Tested by

no test coverage detected