def get(self, key, default=None): ans = LRUCache.get(self, key, default=default) if ans is not None: self.hit_counter += 1 else: self.miss_counter += 1