Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_basic_cache_operations
Function · 0.45
test_ttl_expiration
Function · 0.45
test_max_entries_eviction
Function · 0.45
test_cleanup
Function · 0.45
test_hit_rate_calculation
Function · 0.45
test_memory_leak_prevention
Function · 0.45
Calls
2
read
Method · 0.80
clone
Method · 0.45
Tested by
6
test_basic_cache_operations
Function · 0.36
test_ttl_expiration
Function · 0.36
test_max_entries_eviction
Function · 0.36
test_cleanup
Function · 0.36
test_hit_rate_calculation
Function · 0.36
test_memory_leak_prevention
Function · 0.36