* Get the cache TTL in milliseconds. * Reads from PROMPTFOO_CACHE_TTL environment variable (in seconds) or uses default.
()
| 44 | * Reads from PROMPTFOO_CACHE_TTL environment variable (in seconds) or uses default. |
| 45 | */ |
| 46 | function getCacheTtlMs(): number { |
| 47 | return getEnvInt('PROMPTFOO_CACHE_TTL', DEFAULT_CACHE_TTL_SECONDS) * 1000; |
| 48 | } |
| 49 | |
| 50 | /** |
| 51 | * Get the cache instance with optional namespace isolation. |
no test coverage detected
searching dependent graphs…