def METHOD_NAME(self):
    """
    Remove all expired items from the cache.
    """
    with self.__cache_lock:
        for key in list(self.__cache):
            entry = self.__cache[key]
            if entry.is_expired():
                del self.__cache[key]