1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-21 06:25:42 +02:00

set publicKeyCache lifetime

This commit is contained in:
tamaina
2024-02-27 01:57:35 +00:00
parent 1d780ac010
commit 13e0a64a77

View File

@@ -54,8 +54,8 @@ export class ApDbResolverService implements OnApplicationShutdown {
private cacheService: CacheService, private cacheService: CacheService,
private apPersonService: ApPersonService, private apPersonService: ApPersonService,
) { ) {
this.publicKeyCache = new MemoryKVCache<MiUserPublickey | null>(Infinity); this.publicKeyCache = new MemoryKVCache<MiUserPublickey | null>(1e3 * 60 * 20); // 20分
this.publicKeyByUserIdCache = new MemoryKVCache<MiUserPublickey[] | null>(Infinity); this.publicKeyByUserIdCache = new MemoryKVCache<MiUserPublickey[] | null>(1e3 * 60 * 20); // 20分
} }
@bindThis @bindThis