@flex-cache/types
Advanced tools
@@ -17,3 +17,2 @@ import { IFlexCache } from './FlexCache'; | ||
| update<T>(name: string, data: T, ttl: number): Promise<void>; | ||
| reset(): void; | ||
| } |
@@ -31,13 +31,6 @@ "use strict"; | ||
| FlexCacheStub.prototype.update = function (name, data, ttl) { | ||
| return this.stubs.set(name, data, ttl); | ||
| return this.stubs.update(name, data, ttl); | ||
| }; | ||
| FlexCacheStub.prototype.reset = function () { | ||
| this.stubs.set.reset(); | ||
| this.stubs.setForce.reset(); | ||
| this.stubs.get.reset(); | ||
| this.stubs.delete.reset(); | ||
| this.stubs.update.reset(); | ||
| }; | ||
| return FlexCacheStub; | ||
| }()); | ||
| exports.FlexCacheStub = FlexCacheStub; |
+1
-1
| { | ||
| "name": "@flex-cache/types", | ||
| "version": "3.0.0", | ||
| "version": "3.0.1", | ||
| "dependencies": { | ||
@@ -5,0 +5,0 @@ "sinon": "^9.1.0" |
5063
-4.6%77
-9.41%