diff options
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 |