Registry / storage / node-red-node-redis

node-red-node-redis

JSON →
library0.0.5jsnpmunverified

A Node-RED node to save data to a Redis database. Version 0.0.5 is the latest stable release. This node provides simple output to Redis with support for Hash, Set, List, and String types. Requires a local Redis server. Maintenance is low; the package has not been updated recently and is part of the node-red-nodes collection. Differentiator: integrates directly into Node-RED flows.

npm install node-red-node-redis
INSTALL
IMPORT
SIG · NODE-RED-NODE-REDI
N
node-red-node-redis
storagejavascriptv0.0.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Redis output node
Install via Node-RED palette manager or npm; no direct import needed in Node-RED
Do not require('node-red-node-redis') in JavaScript; it's a Node-RED node
This is a Node-RED node, not a library. Use within Node-RED flow editor.

Shows a basic Node-RED flow configuration for a redis output node.

// Not applicable - Node-RED node. Example flow JSON: [{"id":"n1","type":"redis","z":"","name":"","key":"","type":"string","server":"127.0.0.1","port":6379,"x":400,"y":200,"wires":[]}]
Debug
Known issues
gotchaRequires a locally running Redis server; no connection error if not present.
fix
Ensure Redis server is running on localhost:6379 before deploying flow.
affects: >=0.0.0
gotchaIf key is blank, msg.topic is used as key. Ensure msg.topic is set.
fix
Set msg.topic property in preceding nodes or specify a key in the node configuration.
affects: >=0.0.0
gotchaFor type 'hash', payload must be an object or field=value string; other types may cause errors.
fix
Use a function node to format payload correctly before the redis node.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED
Redis server not running or not accessible
fix
Start Redis server: redis-server
TypeError: Cannot read property 'topic' of undefined
msg object is undefined or missing topic property
fix
Ensure the input message has a topic property or set a key in node config.
Upgrade
Version history
0.0.5latest on npm
Audit
Dependencies
redisrequiredRedis client library required for database connection
Agent activity
18 hits · last 30 days
node
16
Amazon
1
Resources
node-red-node-redis — npm install node-red-node-redis · libregistry