(func: Function | string, items?: any[])
| 187 | } |
| 188 | |
| 189 | static getItemsHashes(func: Function | string, items?: any[]): string[] { |
| 190 | const results = getCachedFiles(func); |
| 191 | |
| 192 | if (items === undefined) { |
| 193 | return results; |
| 194 | } else { |
| 195 | const itemSet = new Set(items.map(Cache.hash)); |
| 196 | return results.filter(r => itemSet.has(r)); |
| 197 | } |
| 198 | } |
| 199 | |
| 200 | static delete(func: Function | string, keyData: any): void { |
| 201 | _createCacheDirectoryIfNotExists(func); |
no test coverage detected