open class DirectoryBuildCache : AbstractBuildCache
Configuration object for the local directory build cache.
Since
3.5
DirectoryBuildCache()
Configuration object for the local directory build cache. |
open fun getDirectory(): Any
Returns the directory to use to store the build cache. |
|
open fun getRemoveUnusedEntriesAfterDays(): Int
Returns the number of days after unused entries are garbage collected. Defaults to 7 days. |
|
open fun getTargetSizeInMB(): Long
Used to be the target size of the build cache in megabytes, now returns |
|
open fun setDirectory(directory: Any): Unit
Sets the directory to use to store the build cache. The directory is evaluated as per |
|
open fun setRemoveUnusedEntriesAfterDays(removeUnusedEntriesAfterDays: Int): Unit
Sets the number of days after unused entries are garbage collected. Defaults to 7 days. Must be greater than 1. |
|
open fun setTargetSizeInMB(targetSizeInMB: Long): Unit
Used to set the target size of the build cache in megabytes, now has no effect. |
open fun isEnabled(): Boolean
{@inheritDoc} |
|
open fun isPush(): Boolean
{@inheritDoc} |
|
open fun setEnabled(enabled: Boolean): Unit
{@inheritDoc} |
|
open fun setPush(push: Boolean): Unit
{@inheritDoc} |