A Redis-backed work queue for Node.js producers and consumers, providing safe and simple job processing. Version 3.1.1 is the latest stable release. It supports Lua scripting for atomic operations and includes features like configurable timeouts, retries, concurrency control, and watchdog timers for stalled jobs. Compared to alternatives like Bull or Kue, this library offers a minimal API with separate client and worker constructors, events for lifecycle hooks, and simple job push/fetch mechanics. It requires Redis 2.6+ and has no external dependencies beyond the redis client.
npm install simple-redis-safe-work-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a producer (client) and consumer (worker) for a simple Redis work queue.
Use `const client = Queue.client('name')` and `const worker = Queue.worker('name', fn)` without `new`.Use `.fetch()` instead of `.listen()`.
Set `autoListen: false` in worker options and call `.listen()` or `.fetch()` manually after setting up handlers.
Check for null before processing: `worker.fetch((err, job) => { if (job) { /* process job */ } });`Use events like 'work done' on the worker to get processing completion notification.
Use `const client = Queue.client('name')` without `new`.Start Redis server or check host/port options: `Queue.client('name', { host: 'localhost', port: 6379 })`Upgrade Redis to 2.6+ with scripting enabled.
No dependency data recorded yet.