parameters: (self)
docstring: Clear the cache.
docstring_summary: Clear the cache.
docstring_tokens: Clear the cache .
function: def clear(self):
          """Clear the cache."""
          self._wlock.acquire()
          try:
              self._mapping.clear()
              self._queue.clear()
          finally:
              self._wlock.release()
function_tokens: def clear ( self ) : self . _wlock . acquire ( ) try : self . _mapping . clear ( ) self . _queue . clear ( ) finally : self . _wlock . release ( )