(&self, name: &str)
| 246 | // Checks if a collection is loaded |
| 247 | #[allow(dead_code)] |
| 248 | pub fn is_loaded(&self, name: &str) -> bool { |
| 249 | if let Some(key_ref) = self.name_to_key.get(name) { |
| 250 | let key = key_ref.value(); |
| 251 | self.cache.get(key).is_some() |
| 252 | } else { |
| 253 | false |
| 254 | } |
| 255 | } |
| 256 | |
| 257 | // Cleans up any stale mappings that point to collections no longer in the cache |
| 258 | #[allow(dead_code)] |