diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/hypixelCached.ts | 2 | ||||
-rw-r--r-- | src/index.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/hypixelCached.ts b/src/hypixelCached.ts index 3d8f04c..1cfc639 100644 --- a/src/hypixelCached.ts +++ b/src/hypixelCached.ts @@ -39,7 +39,7 @@ export const playerCache = new NodeCache({ // cache "basic players" (players without profiles) for 20 minutes export const basicPlayerCache: LRUCache<string, CleanPlayer> = new LRUCache({ max: 10000, - maxAge: 60 * 20 * 1000, + ttl: 60 * 20 * 1000, }) export const profileCache = new NodeCache({ diff --git a/src/index.ts b/src/index.ts index fe35009..4464ca7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -47,7 +47,7 @@ app.get('/', async (req, res) => { usernameCacheSize: usernameCache.keys().length, basicProfilesCacheSize: basicProfilesCache.keys().length, playerCacheSize: playerCache.keys().length, - basicPlayerCacheSize: basicPlayerCache.keys().length, + basicPlayerCacheSize: basicPlayerCache.size, profileCacheSize: profileCache.keys().length, profilesCacheSize: profilesCache.keys().length, profileNameCacheSize: profileNameCache.keys().length, |