code: def _tmpfile(self, cache_key, use):
      
      with temporary_file(suffix=cache_key.id + use, root_dir=self._cache_root,
                          permissions=self._permissions) as tmpfile:
        yield tmpfile
docs: Allocate tempfile on same device as cache with a suffix chosen to prevent collisions