diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-03-24 16:43:42 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-03-24 16:43:42 +0900 |
| commit | e4380911135b1aff7c85770d6dabb3e72e9874e7 (patch) | |
| tree | 30e1f4ec68d407708e55e612456676c33c048a97 /packages/backend/src/core/CustomEmojiService.ts | |
| parent | Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop (diff) | |
| download | misskey-e4380911135b1aff7c85770d6dabb3e72e9874e7.tar.gz misskey-e4380911135b1aff7c85770d6dabb3e72e9874e7.tar.bz2 misskey-e4380911135b1aff7c85770d6dabb3e72e9874e7.zip | |
refactor(backend): rename cache class
Diffstat (limited to 'packages/backend/src/core/CustomEmojiService.ts')
| -rw-r--r-- | packages/backend/src/core/CustomEmojiService.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/backend/src/core/CustomEmojiService.ts b/packages/backend/src/core/CustomEmojiService.ts index b404848d7d..a62854c61c 100644 --- a/packages/backend/src/core/CustomEmojiService.ts +++ b/packages/backend/src/core/CustomEmojiService.ts @@ -8,7 +8,7 @@ import type { DriveFile } from '@/models/entities/DriveFile.js'; import type { Emoji } from '@/models/entities/Emoji.js'; import type { EmojisRepository, Note } from '@/models/index.js'; import { bindThis } from '@/decorators.js'; -import { Cache } from '@/misc/cache.js'; +import { KVCache } from '@/misc/cache.js'; import { UtilityService } from '@/core/UtilityService.js'; import type { Config } from '@/config.js'; import { ReactionService } from '@/core/ReactionService.js'; @@ -16,7 +16,7 @@ import { query } from '@/misc/prelude/url.js'; @Injectable() export class CustomEmojiService { - private cache: Cache<Emoji | null>; + private cache: KVCache<Emoji | null>; constructor( @Inject(DI.config) @@ -34,7 +34,7 @@ export class CustomEmojiService { private globalEventService: GlobalEventService, private reactionService: ReactionService, ) { - this.cache = new Cache<Emoji | null>(1000 * 60 * 60 * 12); + this.cache = new KVCache<Emoji | null>(1000 * 60 * 60 * 12); } @bindThis |