@nestjstools/messaging-redis-extension
Version:
Extension to handle messages and dispatch them over Redis
16 lines • 537 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.RedisChannel = void 0;
const messaging_1 = require("@nestjstools/messaging");
const bullmq_1 = require("bullmq");
class RedisChannel extends messaging_1.Channel {
constructor(config) {
super(config);
this.queue = new bullmq_1.Queue(config.queue, {
connection: this.config.connection,
prefix: config.keyPrefix,
});
}
}
exports.RedisChannel = RedisChannel;
//# sourceMappingURL=redis.channel.js.map
;