wm-redis-message v1.1.4 is a lightweight, Redis-backed message queue implementation for Node.js, providing features like topic-based message fetching, automatic retry with configurable max retries (default 5), lock-based concurrency control, and custom fetch/after-fetch/failure handlers. It uses a poll-and-ack pattern with configurable batch sizes (default 200) and acknowledgment timeout (default 60s). Released on npm, it targets simple queue needs without external dependencies. Differentiators: minimal API, pre-built retry and lock mechanisms, and flexible callback structure for message lifecycle. Current stable version 1.1.4 has infrequent releases; no breaking changes reported.
npm install wm-redis-messageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes RedisMessage with options and fetches up to 10 messages from the queue.
Use destructured import: const { RedisMessage } = require('wm-redis-message');Include a `redis` property in options object with host and port (or any ioredis-compatible config).
Always treat return value as array; check length before accessing elements.
Create custom .d.ts or use @types/wm-redis-message if available.
const { RedisMessage } = require('wm-redis-message');Provide a function that returns a Promise resolving to an array, or omit to use default.
Pass a valid redis object (e.g., { host: 'localhost', port: 6379 }).No dependency data recorded yet.