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

Method contains_key

atomic-repository/src/changestore/cache.rs:101–103  ·  view source on GitHub ↗

Check if a key is in the cache without updating access time.

(&self, key: &K)

Source from the content-addressed store, hash-verified

99
100 /// Check if a key is in the cache without updating access time.
101 pub(crate) fn contains_key(&self, key: &K) -> bool {
102 self.entries.contains_key(key)
103 }
104
105 /// Evict the least recently used entry.
106 fn evict_lru(&mut self) {

Callers 15

is_freeform_memoryFunction · 0.80
runMethod · 0.80
add_serverMethod · 0.80
set_serverMethod · 0.80
enrich_opencode_turnMethod · 0.80
strip_unhashedFunction · 0.80
diff_snapshotsFunction · 0.80
is_inode_recordedMethod · 0.80
ensure_directoriesMethod · 0.80
existsMethod · 0.80

Calls

no outgoing calls

Tested by 6

put_trunkMethod · 0.64
has_trunkMethod · 0.64
put_branchMethod · 0.64
has_branchMethod · 0.64
put_leafMethod · 0.64
has_leafMethod · 0.64