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

use node:sqlite in cache api #3543

Open
KhafraDev opened this issue Sep 4, 2024 · 2 comments
Open

use node:sqlite in cache api #3543

KhafraDev opened this issue Sep 4, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@KhafraDev
Copy link
Member

The web cache api that builds off of fetch primitives would massively benefit from persistent storage. In the past we've discussed caching via files on device, but I think either web storage or node:sqlite could lead to a more reliable approach.

@KhafraDev KhafraDev added the enhancement New feature or request label Sep 4, 2024
@metcoder95
Copy link
Member

It would be nice, shall we do this right away (given that node:sqlite is experimental) or enable/disable it somehow through a flag and mark it as experimental?

@KhafraDev
Copy link
Member Author

I was thinking of adding adapters similar to the dispatcher api that would let people add their own storage mechanisms. I think a built-in sqlite one would be a good start.

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

No branches or pull requests

2 participants