CacheConfig

constructor(cacheEnabled: Boolean = env["GRADLE_ENTERPRISE_API_CACHE_ENABLED"].toBoolean(), cacheDir: File = env["GRADLE_ENTERPRISE_API_CACHE_DIR"]?.let(::File) ?: File(systemProperties["user.home"], ".gradle-enterprise-api-kotlin-cache"), maxCacheSize: Long = env["GRADLE_ENTERPRISE_API_MAX_CACHE_SIZE"]?.toLong() ?: 1_000_000_000L, longTermCacheUrlPattern: Regex = env["GRADLE_ENTERPRISE_API_LONG_TERM_CACHE_URL_PATTERN"]?.toRegex() ?: Regex( """ .*/api/builds/[\d\w]+/(?:gradle|maven)-(?:attributes|build-cache-performance) """.trimIndent() ), longTermCacheMaxAge: Long = env["GRADLE_ENTERPRISE_API_SHORT_TERM_CACHE_MAX_AGE"]?.toLong() ?: 365.days.inWholeSeconds, shortTermCacheUrlPattern: Regex = env["GRADLE_ENTERPRISE_API_SHORT_TERM_CACHE_URL_PATTERN"]?.toRegex() ?: """.*/builds(?:\?.*|\Z)""".toRegex(), shortTermCacheMaxAge: Long = env["GRADLE_ENTERPRISE_API_SHORT_TERM_CACHE_MAX_AGE"]?.toLong() ?: 1.days.inWholeSeconds)(source)