mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-03 09:06:17 +02:00
perf(server): cache blocking
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import { bindThis } from '@/decorators.js';
|
||||
|
||||
// TODO: メモリ節約のためあまり参照されないキーを定期的に削除できるようにする?
|
||||
|
||||
export class Cache<T> {
|
||||
public cache: Map<string | null, { date: number; value: T; }>;
|
||||
private lifetime: number;
|
||||
|
||||
Reference in New Issue
Block a user