p-stream/src/providers/methods/contentCache.ts
mrjvs 60e6b4d851 progress, bookmarking, homepage, resuming where left of, actual media view, navigation improvements for searching
Co-authored-by: James Hawkins <jhawki2005@gmail.com>
Co-authored-by: William Oldham <wegg7250@gmail.com>
2022-02-28 00:08:20 +01:00

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;