Class LocalCacheSpec
java.lang.Object
org.springframework.boot.gradle.tasks.bundling.LocalCacheSpec
Configuration for a local image building cache stored in a volume or bind mount.
- Since:
- 4.2.0
- Author:
- Scott Frederick, Stephane Nicoll
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classConfiguration for an image building cache stored in a bind mount.static classConfiguration for an image building cache stored in a Docker volume. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable org.springframework.boot.buildpack.platform.build.LocalCacheasCache()voidbind(Action<LocalCacheSpec.BindCacheSpec> action) Configures a bind cache using the givenaction.voidvolume(Action<LocalCacheSpec.VolumeCacheSpec> action) Configures a volume cache using the givenaction.
-
Constructor Details
-
LocalCacheSpec
-
-
Method Details
-
asCache
public @Nullable org.springframework.boot.buildpack.platform.build.LocalCache asCache() -
volume
Configures a volume cache using the givenaction.- Parameters:
action- the action
-
bind
Configures a bind cache using the givenaction.- Parameters:
action- the action
-