MCPcopy Create free account
hub / github.com/erans/pgsqlite / clear_cache

Method clear_cache

src/optimization/read_only_optimizer.rs:492–497  ·  view source on GitHub ↗

Clear all cached plans

(&self)

Source from the content-addressed store, hash-verified

490
491 /// Clear all cached plans
492 pub fn clear_cache(&self) {
493 let mut plans = self.query_plans.write().unwrap();
494 plans.clear();
495
496 info!("Cleared read-only optimizer cache");
497 }
498
499 /// Get cache hit rate
500 pub fn get_cache_hit_rate(&self) -> f64 {

Callers 1

maintenanceMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected