Redis
Descriptionâ
Write Rows to a Redis.
tip
Engine Supported and plugin name
- Spark: Redis
- Flink
Optionsâ
name | type | required | default value |
---|---|---|---|
host | string | no | "localhost" |
port | int | no | 6379 |
auth | string | no | |
db_num | int | no | 0 |
data_type | string | no | "KV" |
hash_name | string | no | |
list_name | string | no | |
set_name | string | no | |
zset_name | string | no | |
timeout | int | no | 2000 |
host [string]â
Redis server address, default "localhost"
port [int]â
Redis service port, default 6379
auth [string]â
Redis authentication password
db_num [int]â
Redis database index ID. It is connected to db 0
by default
redis_timeout [int]â
Redis timeout
data_type [string]â
Redis data type eg: KV HASH LIST SET ZSET
hash_name [string]â
if redis data type is HASH must config hash name
list_name [string]â
if redis data type is LIST must config list name
zset_name [string]â
if redis data type is ZSET must config zset name
set_name [string]â
if redis data type is SET must config set name
Examplesâ
redis {
host = "localhost"
port = 6379
auth = "myPassword"
db_num = 1
data_type = "HASH"
hash_name = "test"
}