Stream Postgres changes to Redis Strings with Sequin’s Redis String sink.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
host | string | Yes | - | Hostname or IP address of the Redis server |
port | integer | Yes | - | Port number of the Redis server (1-65535) |
username | string | No | - | Username for Redis authentication |
password | string | No | - | Password for Redis authentication |
tls | boolean | No | false | Enable TLS/SSL for the connection |
database | integer | No | 0 | Redis database number (≥ 0) |
expire_ms | integer | No | - | Key expiration time in milliseconds (≥ 0, omit for no expiration) |
rediss://
is used when tls
is enabled, otherwise redis://
Change action | Redis operation | Behavior |
---|---|---|
INSERT , UPDATE , READ | SET | Sets the key to the JSON representation of the record |
DELETE | DEL | Removes the key from Redis |
id
field with your own prefix:
expire_ms
is specified, each key is set with an expiration time using Redis’ PX
operation during SET
. This allows for automatic key cleanup.