chore: caching smaller

This commit is contained in:
원더 2021-01-25 14:24:01 +09:00
parent 3e1a020a9b
commit 54a37d73af

View File

@ -252,7 +252,7 @@ export const get = {
user: new DataLoader( user: new DataLoader(
async (urls: string[]) => async (urls: string[]) =>
(await Promise.all(urls.map(async (url: string) => await getImage(url)))) (await Promise.all(urls.map(async (url: string) => await getImage(url))))
, { cacheMap: new TLRU({ maxStoreSize: 5000, maxAgeMs: 43200000 }) }), , { cacheMap: new TLRU({ maxStoreSize: 500, maxAgeMs: 43200000 }) }),
} }
} }