mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 14:30:22 +00:00
chore: caching smaller
This commit is contained in:
parent
3e1a020a9b
commit
54a37d73af
@ -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 }) }),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user