Sharkey/packages/backend/src/server/activitypub/cache.ts

7 lines
263 B
TypeScript
Raw Normal View History

2022-03-20 22:21:37 +02:00
import { Cache } from "@/misc/cache";
import { Note } from "@/models/entities/note";
import { User } from "@/models/entities/user";
export const userCache = new Cache<User | null>(1000 * 60 * 30);
export const noteCache = new Cache<Note | null>(1000 * 60 * 30);