def invalidate(self, e=None):
        # already invalidated
        if self.connection is None:
            return
        self.__pool.dispatch.invalidate(self.connection, self, e)
        if e is not None:
            self.__pool.logger.info(
                "Invalidate connection %r (reason: %s:%s)",
                self.connection, e.__class__.__name__, e)
        else:
            self.__pool.logger.info(
                "Invalidate connection %r", self.connection)
        self.__close()
        self.connection = None
Remove members from a sorted set
dataset/ETHPy150Open goFrendiAsgard/kokoropy/kokoropy/packages/sqlalchemy/pool.py/_ConnectionRecord.invalidate--crossover with--dataset/ETHPy150Open deldotdr/txRedis/txredis/client.py/RedisClient.zrem