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 an image. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable org.springframework.boot.buildpack.platform.build.CacheasCache()voidbind(Action<LocalCacheSpec.BindCacheSpec> action) Configures a bind cache using the givenaction.voidimage(Action<CacheSpec.ImageCacheSpec> action) Configures an image cache using the givenaction.voidvolume(Action<LocalCacheSpec.VolumeCacheSpec> action) Configures a volume cache using the givenaction.
-
Constructor Details
-
CacheSpec
-
-
Method Details
-
asCache
public @Nullable 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
-
image
Configures an image cache using the givenaction.- Parameters:
action- the action- Since:
- 4.2.0
-