def run(self):
    while (not self.__is_shutdown.isSet()):
        try:
            self.cache.data.popitem(last=False)
        except KeyError:
            break
    self.__is_stopped.set()
def run(self):
    while (not self.__is_shutdown.isSet()):
        try:
            self.cache.data.popitem(last=False)
        except KeyError:
            break
    self.__is_stopped.set()