Clear the cache and cache statistics
()
| 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…