Skip to content

Commit

Permalink
Update router.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
rajkumardusad authored Mar 27, 2023
1 parent f73a4fd commit a59d651
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/router.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ export default 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 a59d651

Please sign in to comment.