Overview
This node provides a simple in-memory key-value storage system for n8n workflows, allowing users to set, get, and reset stored values during workflow execution. It is useful for temporarily storing data that needs to be shared or reused across different parts of a workflow without external databases. For example, you can store API tokens, intermediate calculation results, or flags that control workflow logic.
Use Case Examples
- Set operation: Store one or more key-value pairs in memory for later use.
- Get operation: Retrieve values for specified keys from memory to use in subsequent workflow steps.
- Reset operation: Clear all stored keys or selectively remove specific keys from memory.
Properties
| Name | Meaning |
|---|---|
| Reset Scope | Choisir le périmètre de réinitialisation. Determines whether to reset all keys in memory or only specific keys. |
| Keys | Lister les clés à réinitialiser. Specifies the keys to be reset when 'Keys Only' scope is selected. |
| Merge Input | Fusionner l'objet d'entrée avec les valeurs calculées en sortie. If true, merges the input JSON object with the output values instead of replacing it. |
Output
JSON
json- The resulting key-value pairs after the operation, merged with input if 'Merge Input' is enabled.
Dependencies
- Uses an internal in-memory Map object for storage; no external dependencies.
Troubleshooting
- Error if no keys or values are provided for set, get, or reset operations.
- Error if keys specified for reset do not exist in memory.
- Error if input data to merge is not a JSON object when 'Merge Input' is enabled.