Merge branch 'io' into merge-upstream

This commit is contained in:
riku6460 2023-12-27 06:47:41 +09:00
commit 678cecf9af
No known key found for this signature in database
GPG key ID: 27414FA27DB94CF6

View file

@ -55,7 +55,10 @@ export class RedisKVCache<T> {
const cached = await this.redisClient.get(`kvcache:${this.name}:${key}`);
if (cached == null) return undefined;
return this.fromRedisConverter(cached);
const parsed = this.fromRedisConverter(cached);
if (parsed == null) return undefined;
this.memoryCache.set(key, parsed);
return parsed;
}
@bindThis