diff --git a/package.json b/package.json index e730d9c..3a31b6b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ztimson/utils", - "version": "0.30.1", + "version": "0.30.2", "description": "Utility library", "author": "Zak Timson", "license": "MIT", diff --git a/src/cache.ts b/src/cache.ts index 752eb20..0254d74 100644 --- a/src/cache.ts +++ b/src/cache.ts @@ -31,7 +31,7 @@ export class Cache { /** Await initial loading */ loading = new Promise(r => this._loading = r); - get size() { return this.store.size; } + get size() { return this.store.keys().toArray().length } /** * Create new cache