MCPcopy Create free account
hub / github.com/Firstyear/opensuse-proxy-cache / remove

Method remove

arc-disk-cache/src/lib.rs:779–788  ·  view source on GitHub ↗

Remove a key

(&self, k: K)

Source from the content-addressed store, hash-verified

777
778 // Remove a key
779 pub fn remove(&self, k: K) {
780 let mut wrtxn = self.cache.write_stats(TraceStat::default());
781 wrtxn.remove(k);
782 // This causes the handles to be dropped and binned.
783 debug!("commit");
784 let stats = wrtxn.commit();
785 let mut stat_guard = self.stats.write();
786 (*stat_guard).update(stats);
787 stat_guard.commit();
788 }
789
790 //
791 pub fn new_tempfile(&self) -> Option<NamedTempFile> {

Callers 4

newMethod · 0.80
write_fileFunction · 0.80
handleMethod · 0.80

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected