Skip to main content

cleanup_state_cache

Function cleanup_state_cache 

Source
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.