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
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 TypeMethodDescriptionorg.springframework.boot.buildpack.platform.build.CacheasCache()voidbind(Action<CacheSpec.BindCacheSpec> action) Configures a bind cache using the givenaction.voidvolume(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
-