mirror of
https://github.com/p-stream/p-stream.git
synced 2026-03-23 23:47:42 +00:00
9 lines
No EOL
321 B
TypeScript
9 lines
No EOL
321 B
TypeScript
import { SimpleCache } from "utils/cache";
|
|
import { MWPortableMedia, MWMedia } from "providers";
|
|
|
|
// cache
|
|
const contentCache = new SimpleCache<MWPortableMedia, MWMedia>();
|
|
contentCache.setCompare((a,b) => a.mediaId === b.mediaId && a.providerId === b.providerId);
|
|
contentCache.initialize();
|
|
|
|
export default contentCache; |