diff options
author | Satya Rohith <me@satyarohith.com> | 2022-09-28 17:41:12 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-28 17:41:12 +0530 |
commit | b312279e58e51520a38e51cca317a09cdadd7cb4 (patch) | |
tree | a0c6f432042ba25b569c151bbe59f1e721788d0c /ext/cache/README.md | |
parent | 1156f726a92d3d3985e591327c7526cd3e2b0473 (diff) |
feat: implement Web Cache API (#15829)
Diffstat (limited to 'ext/cache/README.md')
-rw-r--r-- | ext/cache/README.md | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ext/cache/README.md b/ext/cache/README.md new file mode 100644 index 000000000..7e58f6e4e --- /dev/null +++ b/ext/cache/README.md @@ -0,0 +1,24 @@ +# deno_cache + +This crate implements the Cache API for Deno. + +The following APIs are implemented: + +- [`CacheStorage::open()`][cache_storage_open] +- [`CacheStorage::has()`][cache_storage_has] +- [`CacheStorage::delete()`][cache_storage_delete] +- [`Cache::match()`][cache_match] +- [`Cache::put()`][cache_put] +- [`Cache::delete()`][cache_delete] + +Cache APIs don't support the [query options][query_options] yet. + +Spec: https://w3c.github.io/ServiceWorker/#cache-interface + +[query_options]: https://w3c.github.io/ServiceWorker/#dictdef-cachequeryoptions +[cache_storage_open]: https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/open +[cache_storage_has]: https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/has +[cache_storage_delete]: https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/delete +[cache_match]: https://developer.mozilla.org/en-US/docs/Web/API/Cache/match +[cache_put]: https://developer.mozilla.org/en-US/docs/Web/API/Cache/put +[cache_delete]: https://developer.mozilla.org/en-US/docs/Web/API/Cache/delete |