-
Couldn't load subscription status.
- Fork 320
Closed
Labels
Milestone
Description
To keep @domenic happy (well, and others) the cache should have a constructor.
var cache = new Cache();It should behave similar to:
var cache = await caches.open(SECRET_TOKEN);
await caches.delete(SECRET_TOKEN);You can add items to it, remove items from it, everything you can do with a cache, the implementation will likely be disk-backed. Once it's GC'd, it's associated items should be effectively deleted.
We can look into caches.set(name, cache) and the problems that come with it later.