def __init__(self, path, update_cache):
        self.fullpath = os.path.join(path, 'cache')
        self.update_cache = update_cache
        self.expire_after = timedelta(days=180).total_seconds()
        self.time = time.time()
        self.dirty = False
        self.cache = {}
        # this new set is to avoid doing the same query multiple
        # times during the same run while using update_cache
        self.new = set()
        try:
            with open(self.fullpath) as file_:
                self.cache = json.load(file_)
        except (__HOLE__, ValueError):
            pass
dataset/ETHPy150Open YetAnotherNerd/whatlastgenre/wlg/dataprovider.py/Cache.__init__