Connect to Redis
Field | Description | Required | Example |
---|---|---|---|
address | The address of a single, non-clustered Redis instance | No* | redis://localhost:6379 |
cluster.addresses | A comma-separated list of addresses of Redis instances in a cluster | No* | redis://localhost:6379,redis://localhost:6380 |
type | The type of table (currently only sink is supported) | Yes | sink |
target | The data type to write to. Currently, string , hash , and list are supported | Yes | string |
target.key_prefix | A prefix that will be prepended to all keys | Yes | outputs. |
target.key_columns | A column whose value will be appended to the key for each record | No | id |
string
targetField | Description | Required | Example |
---|---|---|---|
target.ttl_secs | The time-to-live for each key in seconds | No | 3600 |
list
targetField | Description | Required | Example |
---|---|---|---|
target.max_length | The max length for this list; once the list exceeds this, the oldest elements will be dropped | No | 100 |
target.operation | The operation to perform on the list; one of ‘append’ (default) or ‘prepend’ | No | append |
hash
targetField | Description | Required | Example |
---|---|---|---|
target.field_column | This column will be used as the field name in the hash | Yes | key |
GET
command, supporting key-value records.
Lookup tables must currently be created via SQL. A Redis lookup table looks like this: