Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix][Doc] Fix key description error in redis zh doc #7993

Merged
merged 36 commits into from
Nov 7, 2024
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
d7eb718
fix redis hash error
lm-ylj Sep 30, 2024
9b98e6d
Merge branch 'apache:dev' into dev
lm-ylj Oct 22, 2024
2df5ec2
Update RedisDataType.java
lm-ylj Oct 22, 2024
cae040c
[Feature][Connector-Redis]Support redis sink to write custom key and …
lm-ylj Oct 22, 2024
0d78d04
[Feature][Connector-Redis]Support redis sink to write custom key and …
lm-ylj Oct 22, 2024
459e7c4
public static final Option<String> VALUE_COLUMN = Opt…
lm-ylj Oct 22, 2024
3823a52
[Feature][Connector-Redis]Support redis sink to write custom key and …
lm-ylj Oct 22, 2024
e3b42db
[Feature][Connector-Redis]Support redis sink to write custom key and …
lm-ylj Oct 22, 2024
45fcbcf
[Feature][Connector-Redis]Support redis sink to write custom key and …
lm-ylj Oct 22, 2024
0195fef
[Feature][Connector-Redis]Support redis sink to write custom key and …
lm-ylj Oct 22, 2024
fcacf4f
[Feature][Connector-Redis]Support redis sink to write custom key and …
lm-ylj Oct 22, 2024
80c8eb0
[Improve][Connector-Redis] Redis support custom key and value
lm-ylj Oct 25, 2024
80dab89
add redis e2e test case
lm-ylj Oct 25, 2024
cec403c
add redis e2e test case
lm-ylj Oct 25, 2024
b6adcc8
add redis e2e test case
lm-ylj Oct 25, 2024
31553dc
add redis e2e test case
lm-ylj Oct 25, 2024
b1e80ca
add redis e2e test case
lm-ylj Oct 25, 2024
cd991eb
add redis e2e test case
lm-ylj Oct 25, 2024
e5e2781
add redis e2e test case
lm-ylj Oct 25, 2024
f4cca6e
Merge branch 'apache:dev' into dev
lm-ylj Oct 25, 2024
6cc8c26
modify code format
lm-ylj Oct 25, 2024
23238ac
update docs
lm-ylj Oct 25, 2024
3cf3200
update docs
lm-ylj Oct 25, 2024
04c07ef
Merge branch 'apache:dev' into dev
lm-ylj Oct 26, 2024
e672b78
add cos as checkpoint storage type
lm-ylj Oct 28, 2024
558d3b6
update code
lm-ylj Oct 28, 2024
5f480c9
[Improve][Connector-Redis] Redis support custom key and value
Oct 29, 2024
cbb33f9
[Improve][Connector-Redis] Redis support custom key and value
Oct 29, 2024
d87241d
[Improve][Connector-Redis] Redis support custom key and value
Oct 29, 2024
d5a2871
[Improve][Connector-Redis] Redis support custom key and value
Oct 29, 2024
6f3eb09
[Improve][Connector-Redis] Redis support custom key and value
Oct 29, 2024
53e2031
[Improve][Connector-Redis] Redis support custom key and value
Oct 29, 2024
cc6c135
Merge branch 'apache:dev' into dev
lm-ylj Nov 5, 2024
4533a27
Merge branch 'apache:dev' into dev
lm-ylj Nov 7, 2024
4c897ce
update docs
lm-ylj Nov 7, 2024
7337486
update docs
lm-ylj Nov 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions docs/zh/connector-v2/sink/Redis.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,11 @@ Redis 端口
| 200 | 获取成功 | true |
| 500 | 内部错误 | false |

可以使用`{`和`}`符号自定义Redis键名,`{}`中的字段名会被解析替换为上游数据中的某个字段值,例如:将字段名称指定为 `{code}` 并将 data_type 设置为 `key`,将有两个数据写入 Redis:
如果将字段名称指定为 code 并将 data_type 设置为 key,将有两个数据写入 Redis:
1. `200 -> {code: 200, data: 获取成功, success: true}`
2. `500 -> {code: 500, data: 内部错误, success: false}`

Redis键名可以由固定部分和变化部分组成,通过Redis分组符号:连接,例如:将字段名称指定为 `code:{code}` 并将 data_type 设置为 `key`,将有两个数据写入 Redis:
1. `code:200 -> {code: 200, data: 获取成功, success: true}`
2. `code:500 -> {code: 500, data: 内部错误, success: false}`

如果将Redis键名指定为 `value` 并将 data_type 设置为 `key`,则只有一个数据写入 Redis:


如果将字段名称指定为 value 并将 data_type 设置为 key,则由于上游数据的字段中没有 value 字段,将只有一个数据写入 Redis:
1. `value -> {code: 500, data: 内部错误, success: false}`

请参见 data_type 部分以了解具体的写入规则。
Expand Down
Loading