@tornado.gen.coroutine
    def preconnect(self, size=-1):
        if size == -1 and self.max_size == -1:
            raise ClientError("size=-1 not allowed with pool max_size=-1")
        limit = min(size, self.max_size) if size != -1 else self.max_size
        clients = yield [self.get_connected_client() for _ in range(0, limit)]
        for client in clients:
            self.release_client(client)
(pre)Connects some or all redis clients inside the pool.
dataset/ETHPy150Open thefab/tornadis/tornadis/pool.py/ClientPool.preconnect