def tryFlushObjectIdCache(self):
        """If we need to flush the objectID cache, do it and return the minimumId to keep. Otherwise None"""
        if self.curObjectId > self.minObjectId + self.maxObjectIdsToKeep:
            newMinId = self.curObjectId

            self.minObjectId = newMinId
            self.objectIdCache_ = {}
            self.objectToIdCache_ = {}

            return newMinId

        return None
dataset/ETHPy150Open ufora/ufora/ufora/BackendGateway/SubscribableWebObjects/MessageProcessor.py/OutgoingObjectCache.tryFlushObjectIdCache/original