类 CacheSpec
java.lang.Object
cn.taketoday.gradle.tasks.bundling.CacheSpec
Configuration for an image building cache.
- 从以下版本开始:
- 4.0
- 作者:
- Scott Frederick, Harry Yang
-
嵌套类概要
嵌套类修饰符和类型类说明static classConfiguration for an image building cache stored in a bind mount.static classConfiguration for an image building cache stored in a Docker volume. -
字段概要
字段修饰符和类型字段说明private cn.taketoday.buildpack.platform.build.Cacheprivate final org.gradle.api.model.ObjectFactory -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明cn.taketoday.buildpack.platform.build.CacheasCache()voidbind(org.gradle.api.Action<CacheSpec.BindCacheSpec> action) Configures a bind cache using the givenaction.voidvolume(org.gradle.api.Action<CacheSpec.VolumeCacheSpec> action) Configures a volume cache using the givenaction.
-
字段详细资料
-
objectFactory
private final org.gradle.api.model.ObjectFactory objectFactory -
cache
private cn.taketoday.buildpack.platform.build.Cache cache
-
-
构造器详细资料
-
CacheSpec
@Inject public CacheSpec(org.gradle.api.model.ObjectFactory objectFactory)
-
-
方法详细资料
-
asCache
public cn.taketoday.buildpack.platform.build.Cache asCache() -
volume
Configures a volume cache using the givenaction.- 参数:
action- the action
-
bind
Configures a bind cache using the givenaction.- 参数:
action- the action
-