An n8n node that provides a in-memory key-value store for your workflows

1 day ago 2

An n8n node that provides a simple in-memory key-value store. This node is useful for temporarily sharing data between different workflow executions or different parts of the same workflow.

It is no-code solution for getWorkflowStaticData(), Complex round-robin ping-pong via S3 or any similar approach where you tried to achieve any kind of pseudo persistence in your workflows, where you practically required to write JavaScript or integrate complex chains of nodes together in your workflows.

image.gif

  • Set Value: Store a string or JSON object associated with a unique key.
  • Get Value: Retrieve a stored value using its key.
  • Clear Value: Remove a specific key-value pair from the store.
  • Clear All: Remove all key-value pairs from the store.
  • Configurable output for Set/Clear operations (pass through input or output status).
  • An active n8n instance.

If this node is not part of the core n8n nodes, follow these steps to install it as a community node:

  • Go to "Settings" -> "Community nodes"
  • Click "Install"
  • Enter "n8n-nodes-datastore"
  • Ack security risks and proceed with the installation

Later on you will find this node under the name "Datastore" in the modes search box.

Important Considerations & Limitations

  • In-Memory Storage: All data stored using this node resides in the RAM of the n8n process. If n8n is restarted, all data in this store will be lost.
  • Memory Consumption: Storing very large amounts of data or a very large number of keys can consume significant server memory. Use with caution for large datasets.
  • Not a Database Replacement: For persistent storage, reliable inter-process communication, or robust data management, use a proper database (e.g., PostgreSQL, MySQL, Redis) with its corresponding n8n node.

MIT

Read Entire Article