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

Function log_cache_status

src/cache/status.rs:82–95  ·  view source on GitHub ↗

Log cache status to tracing

()

Source from the content-addressed store, hash-verified

80
81/// Log cache status to tracing
82pub fn log_cache_status() {
83 let status = get_cache_status();
84
85 tracing::info!(
86 "Query Cache Status - Total: {}, Hits: {} ({:.1}%), Misses: {}, Evictions: {}, Size: {}/{}",
87 status.total_queries,
88 status.cache_hits,
89 status.hit_rate,
90 status.cache_misses,
91 status.evictions,
92 status.cache_size,
93 status.cache_capacity
94 );
95}
96
97/// Get top cached queries by access count
98pub fn get_top_cached_queries(_limit: usize) -> Vec<(String, u64)> {

Callers 1

mainFunction · 0.85

Calls 1

get_cache_statusFunction · 0.85

Tested by

no test coverage detected