MCPcopy Create free account
hub / github.com/elastic/devfiler / remove

Method remove

src/storage/table.rs:121–131  ·  view source on GitHub ↗

Removes the record with the given key from the table.

(&self, key: Self::Key)

Source from the content-addressed store, hash-verified

119
120 /// Removes the record with the given key from the table.
121 fn remove(&self, key: Self::Key) {
122 let key_raw = key.into_raw();
123
124 // Remove from cache
125 if Self::CACHE_SIZE > 0 {
126 let mut cache = self.cache().lock().unwrap();
127 cache.pop(key_raw.as_ref());
128 }
129
130 self.raw().delete(key_raw).unwrap();
131 }
132
133 /// Inserts the given value at the given key.
134 ///

Callers 3

flush_eventsMethod · 0.80
test_cache_functionalityFunction · 0.80
insertMethod · 0.80

Calls 1

into_rawMethod · 0.45

Tested by 1

test_cache_functionalityFunction · 0.64