Removes the record with the given key from the table.
(&self, key: Self::Key)
| 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 | /// |