java.lang.Object
org.springframework.boot.buildpack.platform.build.Cache
- 直接已知子类:
Cache.Bind
,Cache.Volume
Details of a cache for use by the CNB builder.
- 从以下版本开始:
- 2.6.0
- 作者:
- Scott Frederick
-
嵌套类概要
嵌套类修饰符和类型类说明static class
Details of a cache stored in a bind mount.static enum
The format of the cache.static class
Details of a cache stored in a Docker volume. -
字段概要
字段 -
方法概要
修饰符和类型方法说明static Cache
Create a newCache
that uses a bind mount with the provided source.boolean
getBind()
Return the details of the cache if it is a bind cache.Return the details of the cache if it is a volume cache.int
hashCode()
static Cache
Create a newCache
that uses a volume with the provided name.static Cache
volume
(VolumeName name) Create a newCache
that uses a volume with the provided name.
-
字段详细资料
-
format
-
-
方法详细资料
-
getVolume
Return the details of the cache if it is a volume cache.- 返回:
- the cache, or
null
if it is not a volume cache
-
getBind
Return the details of the cache if it is a bind cache.- 返回:
- the cache, or
null
if it is not a bind cache
-
volume
Create a newCache
that uses a volume with the provided name.- 参数:
name
- the cache volume name- 返回:
- a new cache instance
-
volume
Create a newCache
that uses a volume with the provided name.- 参数:
name
- the cache volume name- 返回:
- a new cache instance
-
bind
Create a newCache
that uses a bind mount with the provided source.- 参数:
source
- the cache bind mount source- 返回:
- a new cache instance
-
equals
-
hashCode
public int hashCode()
-