Skip to main content

store_cache_at

Function store_cache_at 

Source
pub fn store_cache_at(
    path: &Path,
    cache: &McpDescriptorCache,
) -> Result<(), DescriptorCacheError>
Expand description

Atomically persist a descriptor cache with private-filesystem policy (spec §5.4): parent directory ensured 0700, temp file created create_new at mode 0600 (never create-then-chmod), then renamed over the target; symlinks at the target are refused typed. Used to seed/maintain operator-local state (and by tests); this task adds no production writer fed from live server responses.