mirror of
https://github.com/p-stream/p-stream.git
synced 2026-04-06 19:29:26 +00:00
Co-authored-by: James Hawkins <jhawki2005@gmail.com> Co-authored-by: William Oldham <wegg7250@gmail.com>
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; |