def clear(self):
        """ Discards all registered handlers and cached results """
        with self._hlock:
            self.handlers.clear()
        with self._mlock:
            self.memoize.clear()
Discards all registered handlers and cached results