We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6dd6380 + e896363 commit 2e8d703Copy full SHA for 2e8d703
src/lru-cache.js
@@ -1,7 +1,8 @@
1
const lru = require('lru-cache');
2
3
module.exports = class LruCache {
4
- constructor({ maxItems }) {
+ constructor(options) {
5
+ const maxItems = options && options.maxItems
6
this.cache = lru(maxItems);
7
}
8
0 commit comments