diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/config/cache.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/cache.ts b/src/config/cache.ts index 6953fbc..2f5cf52 100644 --- a/src/config/cache.ts +++ b/src/config/cache.ts @@ -30,8 +30,8 @@ export class AniwatchAPICache { * @param expirySeconds set to 60 by default */ async getOrSet<T>( - key: string | Buffer, setCB: () => Promise<T>, + key: string | Buffer, expirySeconds: number = AniwatchAPICache.DEFAULT_CACHE_EXPIRY_SECONDS ) { const cachedData = this.isOptional |
