To read data from Redis, configure a Redis object as a Source transformation in a mapping in advanced mode.
A Redis source reads all top-level Redis keys that correspond to the Redis object name. Redis object names are converted to Redis binary-string through UTF-8 encoding. Each Redis source in a mapping is configured to read one Redis key type, that is, HASH, LIST, or STRING. Keys of other types are ignored.
You can parameterize the Redis source object with values specified in a parameter file when you configure a mapping in advanced mode.
The following table describes the source properties that you can configure for a Redis source:
Property
Description
Connection
Name of the Redis source connection.
You can select an existing connection or create a new connection. You can also click New Parameter to define a parameter for the source connection.
If you want to overwrite the source connection properties at runtime, select the Allow parameter to be overridden at run time option. Specify the parameter file directory and name in the advanced session properties.
Source Type
Type of the source object.
Select Single Object.
Object
Name of the Redis source object based on the selected source type.
Select the source object for a single source.
Adding and removing source fields
You can configure the source fields that you want to use in the data flow.
You can add or remove source fields of primitive data types. You can add fields to a mapping source and retrieve a field from the source object that is not displayed in the list.
For more information on how to add or remove source fields, see the topic "Add and remove fields" in Source transformation in the Data Integration documentation.
Note: You cannot add or remove source fields for Redis STRING data type. Otherwise, the mapping throws a runtime exception.