AutomationFlowsGeneral › Redis CRUD Operations Workflow

Redis CRUD Operations Workflow

Original n8n title: Redis:info Set Keys Get Delete

Redis:info set keys get delete. Uses start, redis. Manual trigger; 8 nodes.

Manual trigger★★★★☆ complexity8 nodesStartRedis
General Trigger: Manual Nodes: 8 Complexity: ★★★★☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "createdAt": "2021-03-10T13:48:09.104Z",
  "updatedAt": "2021-06-02T10:31:06.860Z",
  "id": "118",
  "name": "Redis:info set keys get delete",
  "active": false,
  "nodes": [
    {
      "parameters": {},
      "name": "Start",
      "type": "n8n-nodes-base.start",
      "typeVersion": 1,
      "position": [
        250,
        300
      ],
      "id": "bfe11af4-fb50-452c-b976-4d03d10829d2"
    },
    {
      "parameters": {},
      "name": "Redis",
      "type": "n8n-nodes-base.redis",
      "typeVersion": 1,
      "position": [
        600,
        300
      ],
      "credentials": {
        "redis": {
          "name": "<your credential>"
        }
      },
      "id": "d63e6bed-6d35-4f90-8a9f-11869262fd3c"
    },
    {
      "parameters": {
        "operation": "set",
        "key": "={{$node[\"Set\"].json[\"key\"]}}",
        "value": "={{$node[\"Set\"].json[\"value\"]}}"
      },
      "name": "Redis1",
      "type": "n8n-nodes-base.redis",
      "typeVersion": 1,
      "position": [
        750,
        300
      ],
      "credentials": {
        "redis": {
          "name": "<your credential>"
        }
      },
      "id": "de5c3f28-1d4e-4c43-92c1-d9987e472c69"
    },
    {
      "parameters": {
        "operation": "keys",
        "keyPattern": "={{$node[\"Set\"].json[\"key\"]}}"
      },
      "name": "Redis2",
      "type": "n8n-nodes-base.redis",
      "typeVersion": 1,
      "position": [
        900,
        300
      ],
      "credentials": {
        "redis": {
          "name": "<your credential>"
        }
      },
      "id": "00d6c08e-263e-43db-a93f-a0bf28d0d0bd"
    },
    {
      "parameters": {
        "operation": "get",
        "propertyName": "value",
        "key": "={{$node[\"Set\"].json[\"key\"]}}",
        "options": {}
      },
      "name": "Redis3",
      "type": "n8n-nodes-base.redis",
      "typeVersion": 1,
      "position": [
        1050,
        300
      ],
      "credentials": {
        "redis": {
          "name": "<your credential>"
        }
      },
      "id": "1ee59e47-956c-4c04-b460-0409d488ae1f"
    },
    {
      "parameters": {
        "operation": "delete",
        "key": "={{$node[\"Set\"].json[\"key\"]}}"
      },
      "name": "Redis4",
      "type": "n8n-nodes-base.redis",
      "typeVersion": 1,
      "position": [
        1300,
        300
      ],
      "credentials": {
        "redis": {
          "name": "<your credential>"
        }
      },
      "id": "08580c27-446e-4b5c-a8a2-956208327019"
    },
    {
      "parameters": {
        "values": {
          "string": [
            {
              "name": "key",
              "value": "TestKey"
            },
            {
              "name": "value",
              "value": "=Value{{Date.now()}}"
            }
          ]
        },
        "options": {}
      },
      "name": "Set",
      "type": "n8n-nodes-base.set",
      "typeVersion": 1,
      "position": [
        450,
        300
      ],
      "id": "779cc18d-7a1a-454d-b70a-b54ae590c896"
    },
    {
      "parameters": {
        "functionCode": "if($node['Set'].json['value'] !== $node['Redis3'].json['value'] ){\n  throw new Error('Error in redis node');\n}\nreturn items;"
      },
      "name": "Function",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        1300,
        450
      ],
      "notesInFlow": true,
      "notes": "validate the saved value",
      "id": "72efc2c0-6bb3-4560-b935-9231558081a8"
    }
  ],
  "connections": {
    "Redis": {
      "main": [
        [
          {
            "node": "Redis1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Redis1": {
      "main": [
        [
          {
            "node": "Redis2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Redis2": {
      "main": [
        [
          {
            "node": "Redis3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Redis3": {
      "main": [
        [
          {
            "node": "Redis4",
            "type": "main",
            "index": 0
          },
          {
            "node": "Function",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set": {
      "main": [
        [
          {
            "node": "Redis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Start": {
      "main": [
        [
          {
            "node": "Set",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {},
  "staticData": null,
  "meta": null,
  "versionId": null,
  "triggerCount": 0,
  "tags": []
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Redis:info set keys get delete. Uses start, redis. Manual trigger; 8 nodes.

Source: https://github.com/n8n-io/test-workflows/blob/b37961bd0e1f34e1bffb4be4a345c08ede317689/workflows/118.json — original creator credit. Request a take-down →

More General workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

General

NextCloud:NextCloud:Folder:create move copy delete list:File:upload move copy download delete. Uses start, nextCloud, readBinaryFile. Manual trigger; 28 nodes.

Start, Next Cloud, Read Binary File
General

Transporeon - orders - step 3 - process single. Uses start, functionItem, httpRequest, microsoftSql. Manual trigger; 26 nodes.

Start, Function Item, HTTP Request +3
General

Orbit:Member:upsert get update delete getAll lookup:Note:create update getAll:Activity:create getAll:Post:create getAll delete. Uses start, orbit. Manual trigger; 16 nodes.

Start, Orbit
General

Raindrop:User:get:Collection:create get update getAll delete:Bookmark:create get update getAll delete:Tag:getAll delete. Uses start, raindrop. Manual trigger; 14 nodes.

Start, Raindrop
General

Backup workflows & credentials. Uses start, executeCommand. Manual trigger; 13 nodes.

Start, Execute Command