2023-04-07 01:56:46 +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);
|
|
|
|
|
2023-04-07 01:56:46 +00:00
|
|
|
redis.on("connect", () => redis.disconnect());
|
|
|
|
redis.on("error", (e) => {
|
|
|
|
throw e;
|
2023-02-24 05:09:17 +00:00
|
|
|
});
|