RedisLoader¶
The RedisLoader writes processed rows into Redis by using one field as the key
and another field as the value. It does not modify the rows and returns them
unchanged.
Configuration¶
XPath |
Type |
Description |
|---|---|---|
|
Attribute |
Name of the field in the row to use as the Redis key. |
|
Attribute |
Name of the field in the row to use as the Redis value. Scalar values are cast to strings; arrays and objects are stored as JSON. |
|
Attribute |
Optional key prefix. When set, the final Redis key will be
|
Example¶
Input data¶
Row |
sku |
productAttributes |
|---|---|---|
1 |
String: |
JSON: |
2 |
String: |
JSON: |
Pipeline configuration¶
<redis
keyField="sku"
valueField="productAttributes"
prefix="springbok:product"
/>
Redis output¶
Conceptually, the loader writes the following entries to Redis:
Key |
Value |
|---|---|
|
|
|
|
Pipeline output¶
Row |
sku |
productAttributes |
|---|---|---|
1 |
String: |
JSON: |
2 |
String: |
JSON: |