MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / cache_clear

Function cache_clear

tools/python-3.11.9-amd64/Lib/functools.py:628–635  ·  view source on GitHub ↗

Clear the cache and cache statistics

()

Source from the content-addressed store, hash-verified

626 return _CacheInfo(hits, misses, maxsize, cache_len())
627
628 def cache_clear():
629 """Clear the cache and cache statistics"""
630 nonlocal hits, misses, full
631 with lock:
632 cache.clear()
633 root[:] = [root, root, None, None]
634 hits = misses = 0
635 full = False
636
637 wrapper.cache_info = cache_info
638 wrapper.cache_clear = cache_clear

Callers 2

rstripFunction · 0.85
rstripFunction · 0.85

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected