public class CacheSpec
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CacheSpec.VolumeCacheSpec
Configuration for an image building cache stored in a Docker volume.
|
Modifier and Type | Method and Description |
---|---|
org.springframework.boot.buildpack.platform.build.Cache |
asCache() |
void |
volume(org.gradle.api.Action<CacheSpec.VolumeCacheSpec> action)
Configures a volume cache using the given
action . |
void |
volume(groovy.lang.Closure<?> closure)
Configures a volume cache using the given
closure . |
public org.springframework.boot.buildpack.platform.build.Cache asCache()
public void volume(org.gradle.api.Action<CacheSpec.VolumeCacheSpec> action)
action
.action
- the actionpublic void volume(groovy.lang.Closure<?> closure)
closure
.closure
- the closure