redis-smq
Version:
A simple high-performance Redis message queue for Node.js.
16 lines • 582 B
JavaScript
import { logger } from 'redis-smq-common';
import { RedisClient } from '../../common/redis-client/redis-client.js';
import { Configuration } from '../../config/index.js';
export class ExchangeAbstract {
logger;
redisClient;
constructor() {
this.logger = logger.getLogger(Configuration.getSetConfig().logger, `exchange`);
this.redisClient = new RedisClient();
this.redisClient.on('error', (err) => this.logger.error(err));
}
shutdown = (cb) => {
this.redisClient.shutdown(cb);
};
}
//# sourceMappingURL=exchange-abstract.js.map