public class Cache extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Cache.Format
The format of the cache.
|
static class |
Cache.Volume
Details of a cache stored in a Docker volume.
|
Modifier and Type | Field and Description |
---|---|
protected Cache.Format |
format |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Cache.Volume |
getVolume()
Return the details of the cache if it is a volume cache.
|
int |
hashCode() |
static Cache |
volume(String name)
Create a new
Cache that uses a volume with the provided name. |
protected final Cache.Format format
public Cache.Volume getVolume()
null
if it is not a volume cachepublic static Cache volume(String name)
Cache
that uses a volume with the provided name.name
- the cache volume name