Class LocalCacheSpec

java.lang.Object
org.springframework.boot.gradle.tasks.bundling.LocalCacheSpec

public class LocalCacheSpec extends Object
Configuration for a local image building cache stored in a volume or bind mount.
Since:
4.2.0
Author:
Scott Frederick, Stephane Nicoll
  • Constructor Details

    • LocalCacheSpec

      @Inject public LocalCacheSpec(ObjectFactory objectFactory)
  • Method Details

    • asCache

      public @Nullable org.springframework.boot.buildpack.platform.build.LocalCache asCache()
    • volume

      public void volume(Action<LocalCacheSpec.VolumeCacheSpec> action)
      Configures a volume cache using the given action.
      Parameters:
      action - the action
    • bind

      public void bind(Action<LocalCacheSpec.BindCacheSpec> action)
      Configures a bind cache using the given action.
      Parameters:
      action - the action