MCPcopy Index your code
hub / github.com/nodejs/node / clear

Method clear

tools/inspector_protocol/jinja2/utils.py:369–376  ·  view source on GitHub ↗

Clear the cache.

(self)

Source from the content-addressed store, hash-verified

367 self._wlock.release()
368
369 def clear(self):
370 """Clear the cache."""
371 self._wlock.acquire()
372 try:
373 self._mapping.clear()
374 self._queue.clear()
375 finally:
376 self._wlock.release()
377
378 def __contains__(self, key):
379 """Check if a key exists in this cache."""

Callers

nothing calls this directly

Calls 3

acquireMethod · 0.80
releaseMethod · 0.80
clearMethod · 0.65

Tested by

no test coverage detected