Skip to content

Commit

Permalink
Update router.cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
rajkumardusad authored Mar 27, 2023
1 parent 5cf7746 commit f73a4fd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/router.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ module.exports = class Router {
this.#config.caseSensitive = true;
}
this.#config.host = options.host;
this.#pathCache = new LRUCache();
this.#routeCache = new LRUCache();
this.#pathCache = new LRUCache({
maxLength: 250,
});
this.#routeCache = new LRUCache({
maxLength: 250,
});
}

checkout(path, ...callbacks) {
Expand Down

0 comments on commit f73a4fd

Please sign in to comment.