Clear pattern cache (useful for testing or memory management)
(&mut self)
| 347 | |
| 348 | /// Clear pattern cache (useful for testing or memory management) |
| 349 | pub fn clear_cache(&mut self) { |
| 350 | self.pattern_cache.clear(); |
| 351 | } |
| 352 | |
| 353 | /// Get cache hit rate |
| 354 | pub fn get_cache_hit_rate(&self) -> f64 { |