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

Method wipe_cache

src/borg/cache.py:1045–1052  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1043 return True
1044
1045 def wipe_cache(self):
1046 logger.warning("Discarding incompatible cache and forcing a cache rebuild")
1047 self._chunks = ChunkIndex()
1048 self.cache_config.manifest_id = ""
1049 self.cache_config._config.set("cache", "manifest", "")
1050
1051 self.cache_config.ignored_features = set()
1052 self.cache_config.mandatory_features = set()
1053
1054 def update_compatibility(self):
1055 operation_to_features_map = self.manifest.get_all_mandatory_features()

Callers 1

__init__Method · 0.95

Calls 1

warningMethod · 0.80

Tested by

no test coverage detected