feat(platform): checkpoint current implementation state
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { Redis } from "ioredis";
|
||||
import { logger } from "./logger.js";
|
||||
|
||||
const REDIS_URL = process.env["REDIS_URL"] ?? "redis://localhost:6380";
|
||||
const KEY_PREFIX = "dashboard:";
|
||||
@@ -15,7 +16,7 @@ function getRedis(): Redis {
|
||||
commandTimeout: 2000,
|
||||
});
|
||||
redis.on("error", (e: unknown) => {
|
||||
console.error("[Redis cache]", e);
|
||||
logger.warn({ err: e, redisUrl: REDIS_URL }, "Redis cache connection emitted an error");
|
||||
});
|
||||
}
|
||||
return redis;
|
||||
|
||||
Reference in New Issue
Block a user