From eba8d94e604efcf2f31f8ac70e0ea5da82104104 Mon Sep 17 00:00:00 2001 From: Boris Diakur Date: Fri, 20 Dec 2024 21:59:08 +0100 Subject: [PATCH] docs: update docs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 331541c..066db07 100755 --- a/README.md +++ b/README.md @@ -288,7 +288,7 @@ memoizer.invalidate('foobar').then(() => { console.log('cache for "foobar" clear ## Checking for a cache hit -You can check if the result of a momoized function resulted from a cache hit using the `cacheHit` getter on the `Memoizer` instance. Initially, if no memoized function has been executed, `cacheHit` is `undefined`; if the result of a memozed function was read from a cache file, `cacheHit` is `true`; if the result was just written to a cache file, `cacheHit` is `true`; if an exceptions occured, `cacheHit` is `undefined`. +You can check if the result of a momoized function resulted from a cache hit using the `cacheHit` getter on the `Memoizer` instance. Initially, if no memoized function has been executed, `cacheHit` is `undefined`; if the result was just written to a cache file, `cacheHit` is `false`; if the result of a memozed function was read from a cache file, `cacheHit` is `true`; if an exceptions occured, `cacheHit` is `undefined`. ```js import memoizeFs from 'memoize-fs'