From b636a3ed0d96c4a5cd88ac868a04d4eee2aa5e43 Mon Sep 17 00:00:00 2001 From: Aaron Shafovaloff Date: Mon, 25 Nov 2024 20:40:09 -0700 Subject: [PATCH] docs: updated README --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2938df9..269810f 100644 --- a/README.md +++ b/README.md @@ -55,13 +55,13 @@ const totalChunks = await cache.count(); // Removes expired items, busted items, and limits chunks // Runs at interval -cache.cleanup(); +await cache.cleanup(); // Clears all items from cache -cache.clear(); +await cache.clear(); // Destroy the cache instance -cache.destroy(); +await cache.destroy(); ``` ## Features @@ -135,6 +135,7 @@ flowchart TD - [IndexedDB](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API) - [Web Workers](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API) + - [SharedWorker](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorker) - [MessageChannel](https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel) - [MessagePort](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort) - [Transferable objects](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Transferable_objects)