Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarification about maxAge vs expiry-map based time-based cache expiration #38

Closed
mathiasm74 opened this issue Nov 10, 2021 · 1 comment

Comments

@mathiasm74
Copy link

Why is there a whole section in the README.md describing how to use expiry-map to achieve time-based cache expiration when the much-easier-to-use maxAge option seems to work just as well?

And why is the maxAge option only mentioned in the vaguest of terms?

@sindresorhus
Copy link
Owner

The maxAge option was removed in v6: https://github.com/sindresorhus/p-memoize/releases/tag/v6.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants