()
| 42 | let calls = 0; |
| 43 | |
| 44 | const factory = (): Promise<number> => { |
| 45 | calls += 1; |
| 46 | |
| 47 | return Promise.resolve(99); |
| 48 | }; |
| 49 | |
| 50 | const first = await cacheService.wrap(key, factory, { ttlSeconds: 60 }); |
| 51 | const second = await cacheService.wrap(key, factory, { ttlSeconds: 60 }); |
no outgoing calls
no test coverage detected