From a30713533f3f63d7b8b07b37563698c212e071d4 Mon Sep 17 00:00:00 2001 From: chris48s Date: Fri, 6 Dec 2024 17:08:31 +0000 Subject: [PATCH] Fix error in docs (#925) The function is called `clearCacheById()` https://github.com/jaredwray/cacheable/blob/8ea2b079cdec11c6f068fb8a116e8561f42fa1c5/packages/flat-cache/src/index.ts#L462 --- packages/flat-cache/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flat-cache/README.md b/packages/flat-cache/README.md index 35d64e58..026dd590 100644 --- a/packages/flat-cache/README.md +++ b/packages/flat-cache/README.md @@ -107,7 +107,7 @@ In version 6 we attempted to keep as much as the functionality as possible which - `create(options?: FlatCacheOptions)` - Creates a new cache and will load the data from disk if it exists - `createFromFile(filePath, options?: FlatCacheOptions)` - Creates a new cache from a file -- `clearByCacheId(cacheId: string, cacheDir?: string)` - Clears the cache by the cacheId +- `clearCacheById(cacheId: string, cacheDir?: string)` - Clears the cache by the cacheId - `clearAll(cacheDirectory?: string)` - Clears all the caches