upped cache to 50mb

This commit is contained in:
Miodec 2022-09-27 00:52:50 +02:00
parent 4da5fe4884
commit 9182d353fe

View file

@ -10,7 +10,7 @@ import {
const tokenCache = new LRUCache<string, DecodedIdToken>({
max: 20000,
maxSize: 20000000, // 20MB
maxSize: 50000000, // 50MB
sizeCalculation: (token, key): number =>
JSON.stringify(token).length + key.length, //sizeInBytes
});