Class CacheSpec
java.lang.Object
org.springframework.boot.gradle.tasks.bundling.CacheSpec
Configuration for an image building cache.
- Since:
- 2.6.0
- Author:
- Scott Frederick
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Configuration for an image building cache stored in a bind mount.static class
Configuration for an image building cache stored in a Docker volume. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.boot.buildpack.platform.build.Cache
asCache()
void
bind
(Action<CacheSpec.BindCacheSpec> action) Configures a bind cache using the givenaction
.void
volume
(Action<CacheSpec.VolumeCacheSpec> action) Configures a volume cache using the givenaction
.
-
Constructor Details
-
CacheSpec
-
-
Method Details
-
asCache
public org.springframework.boot.buildpack.platform.build.Cache 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
-