BuildCache
@Incubating public class DirectoryBuildCache extends AbstractBuildCache
Constructor | Description |
---|---|
DirectoryBuildCache() |
Modifier and Type | Method | Description |
---|---|---|
Object |
getDirectory() |
Returns the directory to use to store the build cache.
|
long |
getTargetSizeInMB() |
The target size of the build cache in megabytes.
|
void |
setDirectory(Object directory) |
Sets the directory to use to store the build cache.
|
void |
setTargetSizeInMB(long targetSizeInMB) |
The target size of the build cache in megabytes.
|
isEnabled, isPush, setEnabled, setPush
@Nullable public Object getDirectory()
public void setDirectory(Object directory)
Project.file(Object)
.public long getTargetSizeInMB()
Must be greater than or equal to 1, although larger cache sizes will be more useful.
public void setTargetSizeInMB(long targetSizeInMB)
Must be greater than or equal to 1, although larger cache sizes will be more useful.