MCPcopy Create free account
hub / github.com/libgit2/pygit2 / enable_caching

Method enable_caching

pygit2/settings.py:125–133  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers 2

test_enable_cachingFunction · 0.80
test_enable_cachingFunction · 0.80

Calls 1

optionFunction · 0.90

Tested by 2

test_enable_cachingFunction · 0.64
test_enable_cachingFunction · 0.64