更新时间:2025-05-09 GMT+08:00
Redis连接
介绍
通过Redis连接,可以对Redis服务器抽取或加载数据。
连接样例
{
"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"
}
]
} 连接参数
参数 | 是否必选 | 类型 | 说明 |
|---|---|---|---|
linkConfig.deploymentMode | 是 | 枚举 | Redis部署方式:
|
linkConfig.serverlist | 是 | String | 服务器地址列表,格式如:“host1:port1;host2:port2”。 |
linkConfig.password | 是 | String | 连接Redis服务器的密码。 |
linkConfig.dbIndex | 是 | String | Redis数据库索引。 |

