(key: string, item: T, millisecondsToCache: number)
| 14 | } |
| 15 | |
| 16 | public add(key: string, item: T, millisecondsToCache: number) { |
| 17 | this.data.set( |
| 18 | key, |
| 19 | { |
| 20 | data: item, |
| 21 | expiryTime: new Date().getTime() + millisecondsToCache, |
| 22 | }, |
| 23 | ); |
| 24 | } |
| 25 | |
| 26 | public clear() { |
| 27 | this.data.clear(); |
no test coverage detected