deno/ext/cache
Bartek Iwańczuk a33dae6a2a
feat: allow forcing in-memory SQLite dbs (#29026)
This commit adds two env vars:
- "DENO_CACHE_DB_MODE"
- "DENO_KV_DB_MODE"

Both of these env vars accept either "disk" or "memory" values and
control the modes of backing databases for Web Cache API and
"Deno.openKv()" API.

By default both APIs use disk backed DBs, but they can be changed to use
in-memory
DB, making them effectively ephemeral.
2025-04-28 09:06:38 +00:00
..
01_cache.js chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
Cargo.toml chore: forward v2.2.12 release commit to main (#29044) 2025-04-24 20:22:57 -04:00
lib.rs fix: move extension file declarations to cli/tsc/dts (#28180) 2025-02-19 02:53:21 +01:00
lsc_shard.rs feat(ext/cache): support lscache (#27628) 2025-01-28 18:51:06 +00:00
lscache.rs feat(ext/cache): support lscache (#27628) 2025-01-28 18:51:06 +00:00
README.md feat: implement Web Cache API (#15829) 2022-09-28 17:41:12 +05:30
sqlite.rs feat: allow forcing in-memory SQLite dbs (#29026) 2025-04-28 09:06:38 +00:00

deno_cache

This crate implements the Cache API for Deno.

The following APIs are implemented:

Cache APIs don't support the query options yet.

Spec: https://w3c.github.io/ServiceWorker/#cache-interface