pub fn write(config: &CacheConfig<'_>, cached: &Cached)Expand description
Write a surface to the cache, best effort.
Written to a temporary file and renamed, so a process that dies mid-write leaves the previous entry intact rather than a truncated one that every later run has to fail to parse.