undici icon indicating copy to clipboard operation
undici copied to clipboard

use node:sqlite in cache api

Open KhafraDev opened this issue 1 year ago • 2 comments

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 avatar Sep 04 '24 03:09 KhafraDev

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?

metcoder95 avatar Sep 05 '24 08:09 metcoder95

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.

KhafraDev avatar Sep 06 '24 18:09 KhafraDev