Arrange redis nodes

Describe the problem/error/question

I want to optimize my node structure. The use case is to fetch the subject and sender from the data, store it in a Redis node, and then fetch it. The fetched data will be used again in a subsequent node.

What is the error message (if any)?

NA

Please share your workflow

Share the output returned by the last node

Could you please help in optimizing the workflow nodes, as I want all the data should be set in one node and get in one node of redis.

Information on your n8n setup

  • n8n version: 0.234.1
  • Database (default: SQLite): postgresql
  • n8n EXECUTIONS_PROCESS setting (default: own, main): Default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: MAC

Hey @Gouravdev,

The Redis node doesn’t appear to allow setting multiple properties at once so what you have isn’t a bad way of doing it although I don’t think you need the 2 Get options as the data is from a previous node so could be reference from there this would then give you the code node, Store Subject1, Store Sender 1 and you can drop the other 3.

It would probably be worth adding in some error checking to make sure the fields exists but this should work.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.