2023-02-26 11:07:45 +00:00
|
|
|
import { loadConfig } from './built/config.js';
|
|
|
|
import { createRedisConnection } from './built/redis.js';
|
2023-02-24 05:09:17 +00:00
|
|
|
|
|
|
|
const config = loadConfig();
|
|
|
|
const redis = createRedisConnection(config);
|
|
|
|
|
|
|
|
redis.on('connect', () => redis.disconnect());
|
|
|
|
redis.on('error', (e) => {
|
|
|
|
throw e;
|
|
|
|
});
|