mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-28 22:49:24 +09:00
Merge branch 'io' into merge-upstream
This commit is contained in:
commit
678cecf9af
@ -55,7 +55,10 @@ export class RedisKVCache<T> {
|
|||||||
|
|
||||||
const cached = await this.redisClient.get(`kvcache:${this.name}:${key}`);
|
const cached = await this.redisClient.get(`kvcache:${this.name}:${key}`);
|
||||||
if (cached == null) return undefined;
|
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
|
@bindThis
|
||||||
|
Loading…
Reference in New Issue
Block a user