2023-04-07 03:56:46 +02:00
|
|
|
import { loadConfig } from "./built/config.js";
|
|
|
|
import { createRedisConnection } from "./built/redis.js";
|
2023-02-24 06:09:17 +01:00
|
|
|
|
|
|
|
const config = loadConfig();
|
|
|
|
const redis = createRedisConnection(config);
|
|
|
|
|
2023-04-07 03:56:46 +02:00
|
|
|
redis.on("connect", () => redis.disconnect());
|
|
|
|
redis.on("error", (e) => {
|
|
|
|
throw e;
|
2023-02-24 06:09:17 +01:00
|
|
|
});
|