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

Method remove

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

Remove an entry from the cache. Returns `true` if the entry was present.

(&mut self, key: &K)

Source from the content-addressed store, hash-verified

94 ///
95 /// Returns `true` if the entry was present.
96 pub(crate) fn remove(&mut self, key: &K) -> bool {
97 self.entries.remove(key).is_some()
98 }
99
100 /// Check if a key is in the cache without updating access time.
101 pub(crate) fn contains_key(&self, key: &K) -> bool {

Callers

nothing calls this directly

Calls 1

removeMethod · 0.65

Tested by

no test coverage detected