summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/CustomEmojiService.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-04-04 15:56:47 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-04-04 15:56:47 +0900
commit7f3afac0a21b0a1465cb6c4ac19be608dcdbfe1d (patch)
treecd8225f9e5546a0dea34d2d751e680c692ad5d4d /packages/backend/src/core/CustomEmojiService.ts
parentMerge pull request #10466 from misskey-dev/storybook (diff)
downloadsharkey-7f3afac0a21b0a1465cb6c4ac19be608dcdbfe1d.tar.gz
sharkey-7f3afac0a21b0a1465cb6c4ac19be608dcdbfe1d.tar.bz2
sharkey-7f3afac0a21b0a1465cb6c4ac19be608dcdbfe1d.zip
refactor(backend): rename Cache -> MemoryCache
Diffstat (limited to 'packages/backend/src/core/CustomEmojiService.ts')
-rw-r--r--packages/backend/src/core/CustomEmojiService.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/backend/src/core/CustomEmojiService.ts b/packages/backend/src/core/CustomEmojiService.ts
index a62854c61c..1c3b60e5d7 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 { KVCache } from '@/misc/cache.js';
+import { MemoryKVCache } 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: KVCache<Emoji | null>;
+ private cache: MemoryKVCache<Emoji | null>;
constructor(
@Inject(DI.config)
@@ -34,7 +34,7 @@ export class CustomEmojiService {
private globalEventService: GlobalEventService,
private reactionService: ReactionService,
) {
- this.cache = new KVCache<Emoji | null>(1000 * 60 * 60 * 12);
+ this.cache = new MemoryKVCache<Emoji | null>(1000 * 60 * 60 * 12);
}
@bindThis