Use more sound default cache policy in API

This commit is contained in:
Alexandre Archambault 2017-05-05 18:35:17 +02:00
parent d47c000a87
commit 9428d0343f
1 changed files with 2 additions and 2 deletions

View File

@ -906,7 +906,7 @@ object Cache {
def file(
artifact: Artifact,
cache: File = default,
cachePolicy: CachePolicy = CachePolicy.FetchMissing,
cachePolicy: CachePolicy = CachePolicy.UpdateChanging,
checksums: Seq[Option[String]] = defaultChecksums,
logger: Option[Logger] = None,
pool: ExecutorService = defaultPool,
@ -961,7 +961,7 @@ object Cache {
def fetch(
cache: File = default,
cachePolicy: CachePolicy = CachePolicy.FetchMissing,
cachePolicy: CachePolicy = CachePolicy.UpdateChanging,
checksums: Seq[Option[String]] = defaultChecksums,
logger: Option[Logger] = None,
pool: ExecutorService = defaultPool,