code: func (c *TagCache) dumpToDisk(ctx context.Context, msg *messages.TagCache) error {
  	path, err := c.fs.RootRelToAbs(tagCacheFilename)
  	if err != nil {
  		return err
  	}
  
  	blob, err := MarshalWithSHA256(msg)
  	if err != nil {
  		return err
  	}
  
  	return fs.EnsureFile(ctx, c.fs, path, bytes.NewReader(blob))
  }
docs: // dumpToDisk serializes the tag cache and writes it to the file system.