@classmethod
def clear_cache(cls):
    """
        Clear all of the existing cache entries.
        """
    monitor_running = False
    if cls._monitor_thread:
        monitor_running = cls._monitor_thread.is_alive()
        cls.stop_cache_monitor()
    with cls._monitor_lock, cls._lock:
        while cls._cache:
            cls._cache.pop().delete()
    if monitor_running:
        cls.start_cache_monitor()
