package scalacache
- Alphabetic
- By Inheritance
- scalacache
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- implicit def cacheInvariantK[K, V]: InvariantK[[α$0$[_$1]]Cache[α$0$, K, V]]
An
InvariantK[Cache[*[_], K, V]]
instance for arbitraryK
andV
types.An
InvariantK[Cache[*[_], K, V]]
instance for arbitraryK
andV
types. This must beInvariantK
and not e.g.FunctorK
because of theF[V]
parameter on thecachingF
method. - implicit val flagsEncoder: Codec[Flags]
- implicit def toCacheOps[F[_], K, V](cache: Cache[F, K, V]): CacheOps[F, K, V]
- def weaveCache[F[_], Dom[_], Cod[_], K, V](af: Cache[F, K, V])(implicit DomK: Dom[K], DomV: Dom[V], CodV: Cod[V], DomF: Dom[Flags], COV: Cod[Option[V]], DOD: Dom[Option[Duration]], CodU: Cod[Unit], DomS: Dom[String]): Cache[[δ$1$]Weave[F, Dom, Cod, δ$1$], K, V]
An implementation of
Cache[Aspect.Weave[F, Cod, Dom, *], K, V]
cannot be auto-derived viaDerive.aspect
because thecachingF
method has anF[V]
parameter.An implementation of
Cache[Aspect.Weave[F, Cod, Dom, *], K, V]
cannot be auto-derived viaDerive.aspect
because thecachingF
method has anF[V]
parameter. We handle it here by kind of cheating, and essentially hard-coding aF ~> Aspect.Weave[F, Cod, Dom, *]
for it.See the comment in
CacheWeaveFunctionK
below.