From b92c5efe877f6ee7970b3f6e1b1e3455cb6fe3a2 Mon Sep 17 00:00:00 2001 From: AnxietyisReal <96593068+AnxietyisReal@users.noreply.github.com> Date: Tue, 3 Oct 2023 16:33:20 +1100 Subject: [PATCH] Remove cache hit & miss logs --- src/funcs/CacheServer.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/funcs/CacheServer.ts b/src/funcs/CacheServer.ts index a9d51c9..9c2471a 100644 --- a/src/funcs/CacheServer.ts +++ b/src/funcs/CacheServer.ts @@ -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}`);