refactor: lru-cache maxAge to ttl (#8039)

This commit is contained in:
Antoine Cormouls
2022-06-13 15:29:50 +02:00
committed by GitHub
parent 5f7d392a06
commit 72fac8a5fc
5 changed files with 17 additions and 10 deletions

View File

@@ -5,7 +5,7 @@ export class LRUCache {
constructor({ ttl = defaults.cacheTTL, maxSize = defaults.cacheMaxSize }) {
this.cache = new LRU({
max: maxSize,
maxAge: ttl,
ttl,
});
}