1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 08:20:58 -05:00

Remove cache hit & miss logs

This commit is contained in:
AnxietyisReal 2023-10-03 16:33:20 +11:00
parent 9036e18530
commit b92c5efe87

View File

@ -26,13 +26,8 @@ export default class CacheServer {
}
static async get(key:any) {
const cachedResult = await RedisClient.get(key);
if (cachedResult) {
Logger.forwardToConsole('log', Prefix, `Cache hit for ${key}`);
return JSON.parse(cachedResult);
} else {
Logger.forwardToConsole('log', Prefix, `Cache miss for ${key}`);
return null
}
if (cachedResult) return JSON.parse(cachedResult);
else return null
}
static async set(key:any, value:any) {
Logger.forwardToConsole('log', Prefix, `Building cache for ${key}`);