Configuration parameters
Redis connection
The sink connects to Redis using the following URL format:rediss://is used whentlsis enabled, otherwiseredis://- Authentication credentials are included when provided
Key format and operations
For each change to the source table, the sink performs the following Redis operations:
By default, keys are generated using the format:
Routing
You can use a routing function to customize the key used for each message. For example, you can use the record’sid field with your own prefix:
Data format
Records are stored as JSON strings. The specific format depends on the transform applied to the data: With no transform, the entire message payload is stored as a JSON object This may not be preferred for most caching use cases. We recommend using a transform to modify the structure and content before storage. If your transform returns a string or binary-coercible value (such as an integer or boolean), the value is stored directly in Redis. Otherwise, Sequin will JSON encode the value before storing it in Redis.Key expiration
Whenexpire_ms is specified, each key is set with an expiration time using Redis’ PX operation during SET. This allows for automatic key cleanup.
