MCPcopy Index your code
hub / github.com/RustPython/RustPython / clear_cache

Method clear_cache

Lib/zoneinfo/_zoneinfo.py:91–99  ·  view source on GitHub ↗
(cls, *, only_keys=None)

Source from the content-addressed store, hash-verified

89
90 @classmethod
91 def clear_cache(cls, *, only_keys=None):
92 if only_keys is not None:
93 for key in only_keys:
94 cls._weak_cache.pop(key, None)
95 cls._strong_cache.pop(key, None)
96
97 else:
98 cls._weak_cache.clear()
99 cls._strong_cache.clear()
100
101 @property
102 def key(self):

Callers 13

test_cache_clearMethod · 0.45
clear_cachesFunction · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
test_cache_missMethod · 0.45

Calls 2

popMethod · 0.45
clearMethod · 0.45

Tested by 12

test_cache_clearMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36
test_cache_missMethod · 0.36
test_clear_cacheMethod · 0.36