From 271a26f2b2edea1fb9d4a0f25c17aac10f905cca Mon Sep 17 00:00:00 2001 From: Hidekazu Kobayashi Date: Fri, 6 Oct 2023 22:00:00 +0900 Subject: [PATCH] Write-back value in memory when it's available in redis --- packages/backend/src/misc/cache.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/backend/src/misc/cache.ts b/packages/backend/src/misc/cache.ts index 046d4d6c2f6c..b0d6fe049ed5 100644 --- a/packages/backend/src/misc/cache.ts +++ b/packages/backend/src/misc/cache.ts @@ -166,6 +166,7 @@ export class RedisSingleCache { const cachedValue = await this.get(); if (cachedValue !== undefined) { // Cache HIT + this.memoryCache.set(cachedValue); return cachedValue; }