Key-Value Storage (Write)
Write data to a key-value storage for later retrieval
The Key-Value Storage (Write) block enables users to store key-value pairs in a persistent storage system, facilitating the saving of state or data that needs to be accessed later in a workflow. This block supports Jinja templating, allowing for dynamic key and value generation based on the workflow context.
Configuration (Required)
Key to store the value under. This is the same key you will use to retrieve the value later. This field supports Jinja templating for dynamic key generation.
The value to store. This field supports Jinja templating for dynamic value generation.
Outputs
The output of the Key-Value Storage (Write) block contains the status and message confirming the write operation to the key-value storage.
Usage Context
Use this block when you need to persist data in a workflow for later retrieval. It is particularly useful for maintaining state across different workflow runs.
Best Practices
- Ensure that the keys used are unique and descriptive to avoid overwriting existing data.
- Use Jinja templating to dynamically generate keys and values based on the workflow state.
- Validate that the data being stored is correctly formatted and suitable for later retrieval.