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

Method stats

src/cache/ttl_cache.rs:306–308  ·  view source on GitHub ↗

Get current cache statistics

(&self)

Source from the content-addressed store, hash-verified

304
305 /// Get current cache statistics
306 pub fn stats(&self) -> CacheStats {
307 self.stats.read().clone()
308 }
309
310 /// Force cleanup of expired entries
311 pub fn cleanup(&self) {

Callers 6

test_ttl_expirationFunction · 0.45
test_cleanupFunction · 0.45

Calls 2

readMethod · 0.80
cloneMethod · 0.45

Tested by 6

test_ttl_expirationFunction · 0.36
test_cleanupFunction · 0.36