MCPcopy Create free account
hub / github.com/apify/crawlee-python / _clear_cache

Method _clear_cache

src/crawlee/storages/_key_value_store.py:306–312  ·  view source on GitHub ↗

Clear cache with autosaved values.

(self)

Source from the content-addressed store, hash-verified

304 await value.persist_state()
305
306 async def _clear_cache(self) -> None:
307 """Clear cache with autosaved values."""
308 if self.id in self._autosaved_values:
309 cache = self._autosaved_values[self.id]
310 for value in cache.values():
311 await value.teardown()
312 cache.clear()

Callers 1

dropMethod · 0.95

Calls 2

teardownMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected