Number of cached compiled modules.
(&self)
| 78 | |
| 79 | /// Number of cached compiled modules. |
| 80 | pub fn cached_module_count(&self) -> usize { |
| 81 | self.module_cache |
| 82 | .lock() |
| 83 | .unwrap_or_else(|p| p.into_inner()) |
| 84 | .len() |
| 85 | } |
| 86 | |
| 87 | /// Clear the compilation cache. |
| 88 | pub fn clear_cache(&self) { |