Action References
WriteToRedisAction
WriteToRedisAction
Purpose Write a value to a Redis key; value is an MScript expression (object serialized if needed).
When to use it
- After main operation to cache/update state
- After output to store ephemeral results
Key fields
| Field | Type | Description |
|---|---|---|
redisKey | MScript | Target key. |
message | MScript | Value to store (string/number/object). |
Example
{
"id": "a260-write-status",
"name": "writeWorkflowStatus",
"redisKey": "`job:${this.jobId}:status`",
"message": "{ state: 'completed', at: NOW() }"
}
Was this page helpful?
Built with Documentation.AI
Last updated Jan 3, 2026