Clears the entire kernel cache, including both in-memory and disk cache.
(self)
| 401 | return kernel |
| 402 | |
| 403 | def clear_cache(self): |
| 404 | """ |
| 405 | Clears the entire kernel cache, including both in-memory and disk cache. |
| 406 | """ |
| 407 | with self._lock: |
| 408 | self._memory_cache.clear() # Clear in-memory cache |
| 409 | self._clear_disk_cache() # Clear disk cache |
| 410 | |
| 411 | def _get_cache_path(self, key: str) -> str: |
| 412 | """ |
nothing calls this directly
no test coverage detected