Skip to content

Commit

Permalink
Fixed: Incorrect default value of maxEntries for MemoryCache #904
Browse files Browse the repository at this point in the history
  • Loading branch information
Daan committed Nov 8, 2024
1 parent 7d004cb commit 9a5d253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class MemoryCache {
constructor (maxEntries) {
this.cache = new Map();
this.maxEntries = maxEntries ?? 2 ^ 24 - 1; // Max size for Map is 2 ^ 24.
this.maxEntries = maxEntries ?? 2 ** 24 - 1; // Max size for Map is 2^24.
}

/**
Expand Down

0 comments on commit 9a5d253

Please sign in to comment.