CachePolicy

lmcoursier.definitions.CachePolicy
See theCachePolicy companion class
object CachePolicy

Attributes

Companion
class
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case object FetchMissing extends CachePolicy

Pick local files, download the missing ones.

Pick local files, download the missing ones.

No updates are checked for files already downloaded.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Product
trait Equals
class CachePolicy
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
case object ForceDownload extends CachePolicy

(Re-)download all files.

(Re-)download all files.

Erases files already in cache.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Product
trait Equals
class CachePolicy
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
case object LocalOnly extends CachePolicy

Only pick local files, possibly from the cache. Don't try to download anything.

Only pick local files, possibly from the cache. Don't try to download anything.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Product
trait Equals
class CachePolicy
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
LocalOnly.type
case object LocalOnlyIfValid extends CachePolicy

Only pick local files, possibly from the cache. Don't return changing artifacts (whose last check is) older than TTL

Only pick local files, possibly from the cache. Don't return changing artifacts (whose last check is) older than TTL

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Product
trait Equals
class CachePolicy
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
case object LocalUpdate extends CachePolicy

Only pick local files, check if any update is available for them, and download these if needed.

Only pick local files, check if any update is available for them, and download these if needed.

If no local file is found, don't try download it. Updates are only checked for files already in cache.

Follows the TTL parameter (assumes no update is needed if the last one is recent enough).

Unlike LocalUpdateChanging, all found local files are checked for updates, not just the changing ones.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Product
trait Equals
class CachePolicy
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
case object LocalUpdateChanging extends CachePolicy

Only pick local files. If one of these local files corresponds to a changing artifact, check for updates, and download these if needed.

Only pick local files. If one of these local files corresponds to a changing artifact, check for updates, and download these if needed.

If no local file is found, don't try download it. Updates are only checked for files already in cache.

Follows the TTL parameter (assumes no update is needed if the last one is recent enough).

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Product
trait Equals
class CachePolicy
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
case object Update extends CachePolicy

Pick local files, download the missing ones, check for updates and download those if any.

Pick local files, download the missing ones, check for updates and download those if any.

Follows the TTL parameter (assumes no update is needed if the last one is recent enough).

Unlike UpdateChanging, all found local files are checked for updates, not just the changing ones.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Product
trait Equals
class CachePolicy
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
Update.type
case object UpdateChanging extends CachePolicy

Pick local files, and download the missing ones.

Pick local files, and download the missing ones.

For changing ones, check for updates, and download those if any.

Follows the TTL parameter (assumes no update is needed if the last one is recent enough).

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Product
trait Equals
class CachePolicy
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror