(input: Duration.Input | undefined)
| 4561 | ) |
| 4562 | |
| 4563 | const cacheIdleMs = (input: Duration.Input | undefined): number => { |
| 4564 | const duration = Duration.fromInputUnsafe(input ?? "5 minutes") |
| 4565 | if (Duration.isNegative(duration)) { |
| 4566 | throw new Error("[Query] idleTimeToLive can't be negative") |
| 4567 | } |
| 4568 | return Duration.toMillis(duration) |
| 4569 | } |
| 4570 | |
| 4571 | interface CacheEnv { |
| 4572 | readonly settleOnce: boolean |
no outgoing calls
no test coverage detected