def get_cached(self, obj_id, xtime, next_line=None): if obj_id in self._cache_frequencies: self._cache_frequencies[obj_id] += 1 else: self._cache_frequencies[obj_id] = 1 return LRUCache.get_cached(self, obj_id, xtime)