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

Method contains

libatomic/examples/replication_acceptance/peer.rs:86–92  ·  view source on GitHub ↗
(&self, family: ObjectFamily, key: &str)

Source from the content-addressed store, hash-verified

84 )
85 }
86 pub fn contains(&self, family: ObjectFamily, key: &str) -> bool {
87 self.store
88 .lock()
89 .unwrap()
90 .objects
91 .contains_key(&(family.as_str().into(), key.into()))
92 }
93 pub fn inventory(&self) -> Value {
94 let store = self.store.lock().unwrap();
95 let mut counts = BTreeMap::<String, usize>::new();

Callers 15

sync_credentialsMethod · 0.45
validate_view_nameFunction · 0.45
compute_ref_pair_diffFunction · 0.45
add_filesMethod · 0.45
projectFunction · 0.45
list_tagsMethod · 0.45
plan_view_syncFunction · 0.45
push_changes_implFunction · 0.45
pull_changes_implFunction · 0.45
allowsMethod · 0.45
grant_deadlineFunction · 0.45

Calls 4

contains_keyMethod · 0.80
lockMethod · 0.80
unwrapMethod · 0.45
as_strMethod · 0.45

Tested by 2

peerFunction · 0.36
smoke_checks_every_caseFunction · 0.36