A lightweight queueing wrapper for Redis using lpush/brpop, providing Channel (push/pop) and WorkQueueMgr (send/consume) interfaces for inter-process communication. Version 0.2.5 (last released around 2014) is stable but unmaintained; no releases in the last decade. Differentiators: simple synchronous blocking pop with timeout, full-duplex mode via two Redis connections to avoid hangs, and tunable concurrency (arity) for consumption. Alternatives with active maintenance include Bull, BullMQ, and Bee-Queue.
npm install node-redis-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic Channel push/pop with blocking and timeout variants. Note: pop blocks indefinitely; use full-duplex mode (connect2) to avoid hangs when concurrent pops exist.
Migrate to actively maintained alternatives like Bull, BullMQ, or Bee-Queue.
Always specify a timeout via popTimeout() or consume() with a timeout option.
Avoid direct manipulation of channel.client; use provided methods only.
Call connect2() instead of connect() to use separate connections for push and pop.
Implement external reconnection logic or switch to a library with built-in reconnection support.
Start Redis: redis-server, or check connection config (defaults to localhost:6379).
Ensure you call connect() or attach() with valid Redis clients before using push/pop.
Pass config file path to constructor or set QUEUE_CONFIG_PATH environment variable.