A Node-RED client for Redis that supports pub/sub, lists, Lua scripting, SSL, cluster, custom commands, and instance injection. Version 1.4.0 is the latest stable release as of 2025, with sporadic updates. It uses ioredis under the hood and provides multiple node types: redis-in (for blocking/non-blocking subscriptions), redis-out, redis-command (for arbitrary commands), and redis-queue. Unlike generic Redis libraries, it integrates directly with Node-RED's flow-based programming model, allowing connection reuse and per-config naming. The roadmap includes stream support and better validation, though development has slowed.
npm install node-red-contrib-redisNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Example Node-RED flow showing SET command using redis-command node. Requires a redis-server config node.
Review flows: ensure connection blocking option matches expected behavior (block=true for dedicated connection).
Use redis-out with appropriate commands (e.g., LPUSH) for queue patterns.
Ensure 'params' contains valid JSON array, e.g., ["key", "value"] as a JSON string.
Set a reasonable timeout (e.g., 0 for no timeout, but avoid 0 in production; set a non-zero timeout in milliseconds).
Ensure Redis is running: `redis-server`. Verify host (localhost) and port (6379) in the redis-server config node.
For SET command, params should be: ["key", "value"] as JSON (e.g., ["mykey","myvalue"]).
Ensure msg.payload is an array of arguments for commands like RPUSH (e.g., payload: ["list", "elem1", "elem2"]).