diff --git a/package.json b/package.json index 0cfae4d..ec8ddfb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ztimson/utils", - "version": "0.26.3", + "version": "0.26.4", "description": "Utility library", "author": "Zak Timson", "license": "MIT", diff --git a/src/cache.ts b/src/cache.ts index 5709d72..b901c9a 100644 --- a/src/cache.ts +++ b/src/cache.ts @@ -80,7 +80,7 @@ export class Cache { if(persists.storage?.constructor.name == 'Database') { (persists.storage).createTable({name: persists.key, key: this.key}).then(table => { if(key) { - table.set(key, this.get(key)); + table.set(this.get(key), key); } else { table.clear(); this.all().forEach(row => table.add(row));