You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
331 B
11 lines
331 B
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;
|
|
|