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 classDetails of a cache stored in a bind mount.static enumThe format of the cache.static classDetails of a cache stored in a Docker volume. -
字段概要
字段 -
方法概要
修饰符和类型方法说明static CacheCreate a newCachethat uses a bind mount with the provided source.booleangetBind()Return the details of the cache if it is a bind cache.Return the details of the cache if it is a volume cache.inthashCode()static CacheCreate a newCachethat uses a volume with the provided name.static Cachevolume(VolumeName name) Create a newCachethat uses a volume with the provided name.
-
字段详细资料
-
format
-
-
方法详细资料
-
getVolume
Return the details of the cache if it is a volume cache.- 返回:
- the cache, or
nullif it is not a volume cache
-
getBind
Return the details of the cache if it is a bind cache.- 返回:
- the cache, or
nullif it is not a bind cache
-
volume
Create a newCachethat uses a volume with the provided name.- 参数:
name- the cache volume name- 返回:
- a new cache instance
-
volume
Create a newCachethat uses a volume with the provided name.- 参数:
name- the cache volume name- 返回:
- a new cache instance
-
bind
Create a newCachethat uses a bind mount with the provided source.- 参数:
source- the cache bind mount source- 返回:
- a new cache instance
-
equals
-
hashCode
public int hashCode()
-