pub fn cleanup_state_cache(
db_path: &Path,
valid_session_ids: &HashSet<String>,
) -> Result<usize>Expand description
Remove state cache entries whose resource URIs reference sessions that no longer exist on disk. Returns the number of stale entries removed.