Redis Connector > Mappings for Redis > Redis targets in mappings
  

Redis targets in mappings

To write data to a Redis target, configure a Redis object as a Target transformation in a mapping in advanced mode.
A Redis target writes incoming rows as top-level Redis keys. Each Redis target in a mapping is configured to write all rows as one Redis key type HASH, LIST, or STRING. Redis Connector creates keys with names in ${OBJECT_NAME}:${ID_COLUMN_VALUE} format. Redis object names are converted to Redis binary-string through UTF-8 encoding.
You can parameterize the Redis target object with values specified in a parameter file when you configure a mapping in advanced mode.
The following table describes the target properties that you can configure for a Redis target:
Property
Description
Connection
Name of the Redis connection that is associated with a dataset.
You can select an existing connection or create a new connection. You can also click New Parameter to define a parameter for the target connection.
To overwrite the target connection properties at runtime, select the Allow parameter to be overridden at run time option.
Target Type
Type of target object. Select Single Object or Parameter.
You can add multiple Redis targets in a mapping in advanced mode.
Object
Name of the Redis target object based on the target type selected.
You can select an existing target object or create a new target object at runtime.
Create New at Runtime
Creates a Redis target table at runtime based on the target table you specify.
To create a target table at runtime, specify the following details:
  • - Enter the Redis object name to which you want to write in the Object Name field. When you write a row to a Redis object, the name of the top-level Redis key is in ${OBJECT_NAME}:${ID_COLUMN_VALUE} format.
  • - Enter the row type in the Path field. You can specify row types, HASH, LIST, or STRING based on the row type in the target object. Row types must be in uppercase.
The advanced cluster inserts Redis keys into a Redis database that does not already have Redis keys that match the target key pattern. You can edit the metadata of the source fields before creating the target.
Operation
The target operation. You can select the Insert operation.
Other operations are not applicable.