Enable or disable caching completely. Because caches are repository-specific, disabling the cache cannot immediately clear all cached objects, but each cache will be cleared on the next attempt to update anything in it.
(self, value: bool = True)
| 123 | return option(Option.GET_CACHED_MEMORY) |
| 124 | |
| 125 | def enable_caching(self, value: bool = True) -> None: |
| 126 | """ |
| 127 | Enable or disable caching completely. |
| 128 | |
| 129 | Because caches are repository-specific, disabling the cache |
| 130 | cannot immediately clear all cached objects, but each cache will |
| 131 | be cleared on the next attempt to update anything in it. |
| 132 | """ |
| 133 | return option(Option.ENABLE_CACHING, value) |
| 134 | |
| 135 | def disable_pack_keep_file_checks(self, value: bool = True) -> None: |
| 136 | """ |