#is cache updated withMountedCache ?

1 messages · Page 1 of 1 (latest)

mild sapphire
#

let s say I do something like this:
.withMountedCache("/myMavenRepository", dag.cacheVolume("maven-repo"))

then I have some mvn clean install command running in dagger and that will download stuff from the internet.

Next time I run mvn clean install within dagger it get the cache --> great!

Now I modify my pom file and redo mvn clean install within dagger....

  1. the cache will be downloaded and the mvn clean install within dagger will only download the missing libraries. Am I correct ?
  2. Since new libraries have been downloaded is the cache going to be "updated" ? replaced ? and if so when is it going to happen exactly ?

thank you

hazy heron
mild sapphire
#

Thank you. So the cache will actually always increase in size... Am I correct ?