async def _make_connection(self):
        """Construct a connection to Redis."""
        return await aioredis.create_redis(
            'redis://{}:{}'.format(
                self._redis_params.get('host', 'localhost'),
                self._redis_params.get('port', 6379)
            ),
            db=int(self._redis_params.get('db', 1))
        )
async def _make_connection ( self ) : return await aioredis . create_redis ( 'redis://{}:{}' . format ( self . _redis_params . get ( 'host' , 'localhost' ) , self . _redis_params . get ( 'port' , 6379 ) ) , db = int ( self . _redis_params . get ( 'db' , 1 ) ) )
Construct a connection to Redis.