summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/UserKeypairService.ts
diff options
context:
space:
mode:
authormisskey-release-bot[bot] <157398866+misskey-release-bot[bot]@users.noreply.github.com>2024-08-18 08:08:47 +0000
committerGitHub <noreply@github.com>2024-08-18 08:08:47 +0000
commit882c8b93c164f2841c88b58034ed58d2553a375c (patch)
treea624b844c36c6685755ece1e713febf863faedea /packages/backend/src/core/UserKeypairService.ts
parentMerge pull request #14233 from misskey-dev/develop (diff)
parentRelease: 2024.8.0 (diff)
downloadsharkey-882c8b93c164f2841c88b58034ed58d2553a375c.tar.gz
sharkey-882c8b93c164f2841c88b58034ed58d2553a375c.tar.bz2
sharkey-882c8b93c164f2841c88b58034ed58d2553a375c.zip
Merge pull request #14391 from misskey-dev/develop
Release: 2024.8.0
Diffstat (limited to 'packages/backend/src/core/UserKeypairService.ts')
-rw-r--r--packages/backend/src/core/UserKeypairService.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/core/UserKeypairService.ts b/packages/backend/src/core/UserKeypairService.ts
index 51ac99179a..92d61cd103 100644
--- a/packages/backend/src/core/UserKeypairService.ts
+++ b/packages/backend/src/core/UserKeypairService.ts
@@ -25,7 +25,7 @@ export class UserKeypairService implements OnApplicationShutdown {
) {
this.cache = new RedisKVCache<MiUserKeypair>(this.redisClient, 'userKeypair', {
lifetime: 1000 * 60 * 60 * 24, // 24h
- memoryCacheLifetime: Infinity,
+ memoryCacheLifetime: 1000 * 60 * 60, // 1h
fetcher: (key) => this.userKeypairsRepository.findOneByOrFail({ userId: key }),
toRedisConverter: (value) => JSON.stringify(value),
fromRedisConverter: (value) => JSON.parse(value),