Skip to content

Commit

Permalink
Write-back value in memory when it's available in redis
Browse files Browse the repository at this point in the history
  • Loading branch information
KOBA789 committed Oct 6, 2023
1 parent 760fe8c commit 271a26f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/backend/src/misc/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ export class RedisSingleCache<T> {
const cachedValue = await this.get();
if (cachedValue !== undefined) {
// Cache HIT
this.memoryCache.set(cachedValue);
return cachedValue;
}

Expand Down

0 comments on commit 271a26f

Please sign in to comment.