cleanup_old_cache

Function cleanup_old_cache 

Source
pub fn cleanup_old_cache<R: Runtime>(
    app: &AppHandle<R>,
    max_age_hours: u64,
) -> Result<u64, Error>
Expand description

Cleans up old cache files (older than the specified duration).

This should be called on plugin initialization to prevent cache buildup.