'Enables or disables caching of information retrieved from tor.
:param bool enabled: **True** to enable caching, **False** to disable it'

def set_caching(self, enabled):

    self._is_caching_enabled = enabled
    if (not self._is_caching_enabled):
        self.clear_cache()
