mirror of
https://github.com/denoland/deno.git
synced 2025-10-03 07:34:36 +00:00
![]() 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. |
||
---|---|---|
.. | ||
01_cache.js | ||
Cargo.toml | ||
lib.rs | ||
lsc_shard.rs | ||
lscache.rs | ||
README.md | ||
sqlite.rs |
deno_cache
This crate implements the Cache API for Deno.
The following APIs are implemented:
CacheStorage::open()
CacheStorage::has()
CacheStorage::delete()
Cache::match()
Cache::put()
Cache::delete()
Cache APIs don't support the query options yet.