MCPcopy Index your code
hub / github.com/python/cpython / cache_clear

Function cache_clear

Lib/functools.py:723–731  ·  view source on GitHub ↗

Clear the cache and cache statistics

()

Source from the content-addressed store, hash-verified

721 return _CacheInfo(hits, misses, maxsize, cache_len())
722
723 def cache_clear():
724 """Clear the cache and cache statistics"""
725 nonlocal hits, misses, full
726
727 with lock:
728 cache.clear()
729 root[:] = [root, root, None, None]
730 hits = misses = 0
731 full = False
732
733 wrapper.cache_info = cache_info
734 wrapper.cache_clear = cache_clear

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…