doc-exports/docs/dataartsstudio/api-ref/dataartsstudio_02_0272.html
Xiong, Chen Xiao 14a6d65e8c DataArts API 20240130 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Xiong, Chen Xiao <chenxiaoxiong@huawei.com>
Co-committed-by: Xiong, Chen Xiao <chenxiaoxiong@huawei.com>
2024-03-01 11:46:15 +00:00

7.1 KiB

Link to Redis

Description

By creating a Redis link, you can extract data from or load data to the Redis server.

Sample Link

{
    "links": [
        {
            "link-config-values": {
                "configs": [
                    {
                        "inputs": [
                            {
                                "name": "linkConfig.deploymentMode",
                                "value": "Cluster"
                            },
                            {
                                "name": "linkConfig.serverlist",
                                "value": "10.120.84.149:7300"
                            },
                            {
                                "name": "linkConfig.password",
                                "value": "Add password here"
                            },
                            {
                                "name": "linkConfig.dbIndex",
                                "value": "0"
                            }
                        ],
                        "name": "linkConfig"
                    }
                ]
            },
            "name": "redis_link",
            "connector-name": "redis-connector"
        }
    ]
}

Link Parameters

Parameter

Mandatory

Type

Description

linkConfig.deploymentMode

Yes

Enumeration

Redis deployment mode. The options are as follows:

  • Single: single-node deployment
  • Cluster: cluster deployment

linkConfig.serverlist

Yes

String

Server IP address list in host1:port1;host2:port2 format

linkConfig.password

Yes

String

Password for logging in to the Redis server

linkConfig.dbIndex

Yes

String

Redis database index