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.
default
✓ import AlaskaQueueRedis from 'alaska-queue-redis'
✗ const AlaskaQueueRedis = require('alaska-queue-redis')
Library uses CommonJS internally, but TypeScript ESM imports are preferred. The default export is the driver class.
RedisQueueDriver
✓ import { RedisQueueDriver } from 'alaska-queue-redis'
✗ import { AlaskaQueueRedis } from 'alaska-queue-redis'
Named export is available as RedisQueueDriver, not AlaskaQueueRedis.
default with type
✓ import AlaskaQueueRedis from 'alaska-queue-redis'; const queue = new AlaskaQueueRedis(options)
✗ new AlaskaQueueRedis.Queue(options)
Instantiate directly with options object; no sub-property like 'Queue'.
Shows instantiation with config, pushing a job, pulling a job, and deleting a job.
import AlaskaQueueRedis from 'alaska-queue-redis';
const queueDriver = new AlaskaQueueRedis({
key: 'myQueue',
idle: 5,
url: process.env.REDIS_URL || 'redis://localhost/0'
});
// Push a job
await queueDriver.push({ data: 'hello' });
// Pull (blocking)
const job = await queueDriver.pull();
console.log(job.data);
// Delete job
await queueDriver.delete(job.id);
Debug
Known issues
deprecatedThe 'url' option is deprecated in favor of 'redisOptions' object for connection.fixUse 'redisOptions' instead of 'url' for Redis connection configuration.
affects: >=0.13.0
gotchaThe 'idle' option controls the number of idle drivers, not the queue concurrency.fixSet 'idle' to the number of concurrent worker processes, not task concurrency.
affects: >=0.1.0
breakingDefault export changed from Class to function in v0.10.0.fixUse 'new AlaskaQueueRedis()' instead of calling the default export directly.
affects: >=0.10.0 <0.11.0
gotchaRedis connection errors are not automatically retried; you must handle reconnection manually.fixImplement custom reconnection logic or use 'redisOptions.retry_strategy'.
affects: >=0.1.0
Errors
Common errors & fixes
TypeError: AlaskaQueueRedis is not a constructor
Using the default export as a constructor in CommonJS without 'new' or after module update.
fixEnsure you are using 'new AlaskaQueueRedis()' and importing correctly (ESM: 'import AlaskaQueueRedis from ...').
ReplyError: MOVED 12345 127.0.0.1:6380
Redis cluster mode is not supported; the driver only works with standalone Redis instances.
fixUse a standalone Redis instance or connect directly to a single node.
Error: Redis connection to localhost:6379 failed - connect ECONNREFUSED
Redis server not running or wrong host/port provided.
fixStart Redis server or update 'url' to correct connection string.
Audit
Dependencies
redisrequiredUnderlying Redis client for queue operations
alaska-queuerequiredBase queue interface that this driver implements