final class FileCache[F[_]] extends Cache[F] with Product with Serializable
- Alphabetic
- By Inheritance
- FileCache
- Serializable
- Product
- Equals
- Cache
- PlatformCache
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new FileCache(location: File)(implicit sync: Sync[F])
- new FileCache(location: File, cachePolicies: Seq[CachePolicy], checksums: Seq[Option[String]], credentials: Seq[Credentials], logger: CacheLogger, pool: ExecutorService, ttl: Option[Duration], localArtifactsShouldBeCached: Boolean, followHttpToHttpsRedirections: Boolean, followHttpsToHttpRedirections: Boolean, maxRedirections: Option[Int], sslRetry: Int, sslSocketFactoryOpt: Option[SSLSocketFactory], hostnameVerifierOpt: Option[HostnameVerifier], retry: Int, bufferSize: Int)(implicit sync: Sync[F])
- new FileCache(location: File, cachePolicies: Seq[CachePolicy], checksums: Seq[Option[String]], credentials: Seq[Credentials], logger: CacheLogger, pool: ExecutorService, ttl: Option[Duration], localArtifactsShouldBeCached: Boolean, followHttpToHttpsRedirections: Boolean, followHttpsToHttpRedirections: Boolean, maxRedirections: Option[Int], sslRetry: Int, sslSocketFactoryOpt: Option[SSLSocketFactory], hostnameVerifierOpt: Option[HostnameVerifier], retry: Int, bufferSize: Int, classLoaders: Seq[ClassLoader])(implicit sync: Sync[F])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addCredentials(credentials: Credentials*): FileCache[F]
- def addFileCredentials(credentialFile: File): FileCache[F]
- def allCredentials: F[Seq[DirectCredentials]]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val bufferSize: Int
- val cachePolicies: Seq[CachePolicy]
- def canEqual(obj: Any): Boolean
- Definition Classes
- FileCache → Equals
- val checksums: Seq[Option[String]]
- val classLoaders: Seq[ClassLoader]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val credentials: Seq[Credentials]
- lazy val ec: ExecutionContextExecutorService
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(obj: Any): Boolean
- Definition Classes
- FileCache → Equals → AnyRef → Any
- def fetch: Fetch[F]
Method to fetch an Artifact.
Method to fetch an Artifact.
Note that this method tries all the coursier.cache.CachePolicy ies of this cache straightaway. During resolutions, you should prefer to try all repositories for the first policy, then the other policies if needed (in pseudo-code,
for (policy <- policies; repo <- repositories) …
, rather thanfor (repo <- repositories, policy <- policies) …
). You should use the fetchs method in that case. - def fetchs: Seq[Fetch[F]]
Sequence of Fetch able to fetch an Artifact.
Sequence of Fetch able to fetch an Artifact.
Each element correspond to a coursier.cache.CachePolicy of this Cache. You may want to pass each of them to
coursier.core.ResolutionProcess.fetch()
.- returns
a non empty sequence
- def file(artifact: Artifact, retry: Int): EitherT[F, ArtifactError, File]
- def file(artifact: Artifact): EitherT[F, ArtifactError, File]
This method computes the task needed to get a file.
This method computes the task needed to get a file.
- Definition Classes
- FileCache → PlatformCache
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- val followHttpToHttpsRedirections: Boolean
- val followHttpsToHttpRedirections: Boolean
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- FileCache → AnyRef → Any
- val hostnameVerifierOpt: Option[HostnameVerifier]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val localArtifactsShouldBeCached: Boolean
- def localFile(url: String, user: Option[String] = scala.None): File
- val location: File
- val logger: CacheLogger
- def loggerOpt: Some[CacheLogger]
- val maxRedirections: Option[Int]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noCredentials: FileCache[F]
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val pool: ExecutorService
- def productArity: Int
- Definition Classes
- FileCache → Product
- def productElement(n: Int): Any
- Definition Classes
- FileCache → Product
- def productElementName(n: Int): String
- Definition Classes
- FileCache → Product
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def productIterator: Iterator[Any]
- Definition Classes
- Product
- def productPrefix: String
- Definition Classes
- FileCache → Product
- val retry: Int
- val sslRetry: Int
- val sslSocketFactoryOpt: Option[SSLSocketFactory]
- implicit val sync: Sync[F]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- FileCache → AnyRef → Any
- val ttl: Option[Duration]
- def validateChecksum(artifact: Artifact, sumType: String): EitherT[F, ArtifactError, Unit]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withBufferSize(bufferSize: Int): FileCache[F]
- def withCachePolicies(cachePolicies: Seq[CachePolicy]): FileCache[F]
- def withChecksums(checksums: Seq[Option[String]]): FileCache[F]
- def withClassLoaders(classLoaders: Seq[ClassLoader]): FileCache[F]
- def withCredentials(credentials: Seq[Credentials]): FileCache[F]
- def withFollowHttpToHttpsRedirections(followHttpToHttpsRedirections: Boolean): FileCache[F]
- def withFollowHttpsToHttpRedirections(followHttpsToHttpRedirections: Boolean): FileCache[F]
- def withHostnameVerifier(hostnameVerifier: HostnameVerifier): FileCache[F]
- def withHostnameVerifierOpt(hostnameVerifierOpt: Option[HostnameVerifier]): FileCache[F]
- def withLocalArtifactsShouldBeCached(localArtifactsShouldBeCached: Boolean): FileCache[F]
- def withLocation(location: File): FileCache[F]
- def withLocation(location: String): FileCache[F]
- def withLogger(logger: CacheLogger): FileCache[F]
- def withMaxRedirections(maxRedirections: Option[Int]): FileCache[F]
- def withMaxRedirections(max: Int): FileCache[F]
- def withPool(pool: ExecutorService): FileCache[F]
- def withRetry(retry: Int): FileCache[F]
- def withSslRetry(sslRetry: Int): FileCache[F]
- def withSslSocketFactory(sslSocketFactory: SSLSocketFactory): FileCache[F]
- def withSslSocketFactoryOpt(sslSocketFactoryOpt: Option[SSLSocketFactory]): FileCache[F]
- def withSync(sync: Sync[F]): FileCache[F]
- def withTtl(ttl: Option[Duration]): FileCache[F]
- def withTtl(ttl: Duration): FileCache[F]