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
Use Keyv #15
Comments
I believe it should be done in a different package as it would make the entire API async and solves a different use case imo. |
Ah, good point regarding async, hadn't considered that. |
Could maybe be added to https://github.com/sindresorhus/p-memoize instead, since it only supports promises. |
@lukechilds I'm trying to use could be possible extend |
Are you interested in backing this with Keyv?
https://github.com/lukechilds/keyv
It would work in memory like it does currently but give users the option to use a persistent store like Redis/Mongo/Postgres/etc and share memoized results between servers/restarts.
It would also solve the memory leak issue in #14 via Keyv's built in TTL support.
The text was updated successfully, but these errors were encountered: