MCPcopy Create free account
hub / github.com/dfinity/orbit / remove

Method remove

core/station/impl/src/core/cache.rs:58–60  ·  view source on GitHub ↗

Removes a key from the cache and returns the value at the key if it exists.

(&mut self, key: &Key)

Source from the content-addressed store, hash-verified

56
57 /// Removes a key from the cache and returns the value at the key if it exists.
58 pub fn remove(&mut self, key: &Key) -> Option<Value> {
59 self.map.remove(key)
60 }
61
62 /// Contains the key.
63 pub fn contains_key(&self, key: &Key) -> bool {

Callers 13

executeMethod · 0.45
executeMethod · 0.45
executeMethod · 0.45
insertMethod · 0.45
remove_scheduled_taskMethod · 0.45
test_request_removalFunction · 0.45
fmt_with_contextMethod · 0.45
changeMethod · 0.45

Calls

no outgoing calls