From eb86fac89ef19b00e899ae09b138a28f00498478 Mon Sep 17 00:00:00 2001 From: Conduitry Date: Wed, 29 Sep 2021 19:40:06 -0400 Subject: [PATCH] update readme --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index d9c15c7..ba13962 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,10 @@ The response is only persisted to the cache if the `Promise` resolves successful Along with each cache entry is stored a list of the `mode`s that entry has been used in. Whenever an entry is used (either through a cache hit or a cache miss), the current `mode` is added to that entry's list. The current `mode` is removed from all other entries' lists, and those entries whose list of `mode`s is now empty are not written to disk when `cache.close()` is called. +## Bypassing the cache + +You can completely bypass the cache by passing a `path` of `null` to `autocache`. This returns a `cache` that simply calls `compute_value` directly and a `close` that does nothing. This makes it easy to temporarily disable caching in your app without changing each call to `cache` and without deleting your cache file. + ## License [MIT](LICENSE)