public class Caches extends Object implements Closeable
In general, the cache for base image layers should be shared between projects, while the cache for the application image layers should be specific to a single project.
| Modifier and Type | Class and Description |
|---|---|
static class |
Caches.Initializer
Initializes a
Caches with directory paths. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Cache |
getApplicationCache() |
Cache |
getBaseCache() |
static Caches.Initializer |
newInitializer(Path applicationCacheDirectory) |
public static Caches.Initializer newInitializer(Path applicationCacheDirectory)
applicationCacheDirectory - Cache for the application image layers - should be local to
the application projectCaches.Initializer to initialize the caches.public Cache getBaseCache()
public Cache getApplicationCache()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2018. All rights reserved.