diff options
-rw-r--r-- | build/hypixelCached.js | 2 | ||||
-rw-r--r-- | src/hypixelCached.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/build/hypixelCached.js b/build/hypixelCached.js index 9b753e7..cb078f2 100644 --- a/build/hypixelCached.js +++ b/build/hypixelCached.js @@ -54,7 +54,7 @@ exports.playerCache = new node_cache_1.default({ // cache "basic players" (players without profiles) for 30 minutes exports.basicPlayerCache = new lru_cache_1.default({ max: 10000, - maxAge: 60 * 30, + maxAge: 60 * 30 * 1000, }); exports.profileCache = new node_cache_1.default({ stdTTL: 30, diff --git a/src/hypixelCached.ts b/src/hypixelCached.ts index 4ffd1a7..338dc98 100644 --- a/src/hypixelCached.ts +++ b/src/hypixelCached.ts @@ -38,7 +38,7 @@ export const playerCache = new NodeCache({ // cache "basic players" (players without profiles) for 30 minutes export const basicPlayerCache: LRUCache<string, CleanPlayer> = new LRUCache({ max: 10000, - maxAge: 60 * 30, + maxAge: 60 * 30 * 1000, }) export const profileCache = new NodeCache({ |