diff --git a/src/cache.ts b/src/cache.ts index 1458892..d92d602 100644 --- a/src/cache.ts +++ b/src/cache.ts @@ -1,10 +1,10 @@ -import LRU from 'lru-cache' +import { LRUCache } from 'lru-cache' import type { ImageCacheItem } from './types' -export const bufferCache = new LRU({ +export const bufferCache = new LRUCache({ max: 500, }) -export const contentCache = new LRU({ +export const contentCache = new LRUCache({ max: 500, })