Package org.gradle.caching.configuration

# Interface BuildCache

All Known Implementing Classes:
  `AbstractBuildCache`, `DirectoryBuildCache`, `HttpBuildCache`

public interface BuildCache
Configuration object for a build cache.

Since:
  3.5

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Property<Boolean>`
  `getEnabled()`
  Controls whether the build cache is enabled.
  `default Property<Boolean>`
  `getIsEnabled()`
  Controls whether the build cache is enabled.
  `default Property<Boolean>`
  `getIsPush()`
  Controls whether a given build can store outputs in the build cache.
  `Property<Boolean>`
  `getPush()`
  Controls whether a given build can store outputs in the build cache.

- ## Method Details

  - ### getEnabled

    Property<Boolean> getEnabled()
    Controls whether the build cache is enabled. Added for Kotlin source compatibility.

  - ### getIsEnabled

    @ReplacedBy("getEnabled()") default Property<Boolean> getIsEnabled()
    Controls whether the build cache is enabled.

  - ### getPush

    Property<Boolean> getPush()
    Controls whether a given build can store outputs in the build cache.

  - ### getIsPush

    @ReplacedBy("getPush()") default Property<Boolean> getIsPush()
    Controls whether a given build can store outputs in the build cache. Added for Kotlin source compatibility.