MCPcopy
hub / github.com/borgbackup/borg / _maybe_write_chunks_cache

Method _maybe_write_chunks_cache

src/borg/cache.py:921–925  ·  view source on GitHub ↗
(self, now, force=False, clear=False)

Source from the content-addressed store, hash-verified

919 return ChunkListEntry(id, size)
920
921 def _maybe_write_chunks_cache(self, now, force=False, clear=False):
922 if force or now > self.chunks_cache_last_write + self.chunks_cache_write_td:
923 if self._chunks is not None:
924 write_chunkindex_to_repo_cache(self.repository, self._chunks, clear=clear)
925 self.chunks_cache_last_write = now
926
927 def refresh_lock(self, now):
928 if now > self.last_refresh_dt + self.refresh_td:

Callers 2

add_chunkMethod · 0.95
closeMethod · 0.80

Calls 1

Tested by

no test coverage detected