diff --git a/package.json b/package.json index 1529c83..3b3cd96 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ztimson/utils", - "version": "0.20.2", + "version": "0.20.3", "description": "Utility library", "author": "Zak Timson", "license": "MIT", diff --git a/src/cache.ts b/src/cache.ts index c4ebcb7..b6bdcb4 100644 --- a/src/cache.ts +++ b/src/cache.ts @@ -87,6 +87,13 @@ export class Cache { return this; } + /** + * Remove all keys from cache + */ + clear() { + this.store = >{}; + } + /** * Delete an item from the cache *