Skip to main content

get_cached_slugs

Function get_cached_slugs 

Source
pub async fn get_cached_slugs() -> Arc<HashMap<String, CachedSlugEntry>> 
Expand description

Return a snapshot of the cached slug table, refreshing from disk if expired.

The disk I/O happens outside the mutex to avoid blocking concurrent requests during the refresh. A short race window exists where two threads may both refresh, but that is harmless (last writer wins with identical data).