def __iter__(self):
        """Drop all expired items and return an iterator of the remaining items"""
        with self._lock:
            sequence, timestamps = self._mapping.get(self._INDEX, ([], {}))
            self._maintenance(sequence, timestamps)  # O(logN)
            self._mapping[self._INDEX] = sequence, timestamps
        return iter(timestamps)  # Faster than iter(self._mapping) when it is on disk
Drop all expired items and return an iterator of the remaining items
Solutions/CyberArkAudit/Data Connectors/.python_packages/lib/site-packages/msal/individual_cache.py