Skip to content

Commit

Permalink
Ensure alphabetic order
Browse files Browse the repository at this point in the history
  • Loading branch information
kibertoad committed Mar 22, 2023
1 parent 6ba3f32 commit 146d157
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lru.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
class LRU {
get size () {
return this.items.size;
}

constructor (max = 0, ttl = 0, resetTtl = false) {
this.first = null;
this.items = new Map();
Expand Down Expand Up @@ -152,6 +148,10 @@ class LRU {

return this;
}

get size () {
return this.items.size;
}
}

export function lru (max = 1000, ttl = 0, resetTtl = false) {
Expand Down

0 comments on commit 146d157

Please sign in to comment.