Remove a key
(&self, k: K)
| 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> { |
no test coverage detected