- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 357
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: isaacs/node-lru-cache
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v7.4.2
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: isaacs/node-lru-cache
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v7.4.3
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 3 commits
- 11 files changed
- 1 contributor
Commits on Mar 10, 2022
-
Allow unbounded storage if maxSize or ttl set
This also prevents setting size=0 if maxSize is set, since that is a recipe for disaster. At least one of max, maxSize, or ttl MUST be set, to prevent unbounded growth of the cache. And really, without ttlAutopurge, it's effectively unsafe and unbounded in that case anyway, *especially* if allowStale is set. This is potentially "unsafe at any speed" territory, so it emits a process warning in that case. If max is not set, then regular Array is used to track items, without setting an initial Array capacity. This will often perform much worse, but in many cases, it's not so bad. Bigger hazard is definitely unbounded memory consumption. Fix: #208
Configuration menu - View commit details
-
Copy full SHA for 21c88f8 - Browse repository at this point
Copy the full SHA 21c88f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for bff981e - Browse repository at this point
Copy the full SHA bff981eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 00449b3 - Browse repository at this point
Copy the full SHA 00449b3View commit details
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.