The Redis node performs Redis operations: set, get, check key existence, and delete. Use it for caching, rate limiting, and key-value storage.
Overview
| Property | Value |
|---|
| Inputs | 1 |
| Outputs | 1 |
| Output | $nodeLabel.value, $nodeLabel.success, $nodeLabel.exists, $nodeLabel.deleted |
Parameters
| Parameter | Type | Description |
|---|
credentialId | UUID | Redis credential from Credentials |
redisOperation | "set" | "get" | "hasKey" | "deleteKey" | Operation type |
redisKey | expression | Redis key (supports expressions) |
redisValue | expression | Value for set operation |
redisTtl | number | TTL in seconds (set only, optional) |
Operations
| Operation | Required | Output |
|---|
set | key, value | success, key, ttl |
get | key | value, exists, key |
hasKey | key | exists, key |
deleteKey | key | deleted, key |
Example – Cache
{
"type": "redis",
"data": {
"label": "cacheResponse",
"credentialId": "redis-credential-uuid",
"redisOperation": "set",
"redisKey": "cache:$userInput.body.userId",
"redisValue": "$apiResponse.body",
"redisTtl": 3600
}
}
Example – Get
{
"type": "redis",
"data": {
"label": "getCache",
"credentialId": "redis-credential-uuid",
"redisOperation": "get",
"redisKey": "cache:$userInput.body.userId"
}
}