com.dwolla.tagless.scalacache
package com.dwolla.tagless.scalacache
Members list
Value members
Concrete methods
An implementation of Cache[Aspect.Weave[F, Cod, Dom, *], K, V]
cannot be auto-derived via Derive.aspect
because the cachingF
method has an F[V]
parameter.
An implementation of Cache[Aspect.Weave[F, Cod, Dom, *], K, V]
cannot be auto-derived via Derive.aspect
because the cachingF
method has an F[V]
parameter. We handle it here by kind of cheating, and essentially hard-coding a F ~> Aspect.Weave[F, Cod, Dom, *]
for it.
See the comment in CacheWeaveFunctionK
below.
Attributes
- Source
- package.scala
Givens
Givens
Attributes
- Source
- package.scala
An InvariantK[Cache[*[_], K, V]]
instance for arbitrary K
and V
types.
An InvariantK[Cache[*[_], K, V]]
instance for arbitrary K
and V
types. This must be InvariantK
and not e.g. FunctorK
because of the F[V]
parameter on the cachingF
method.
Attributes
- Source
- package.scala
Extensions
Extensions
extension [F[_], K, V](cache: Cache[F, K, V])
Attributes
- Source
- package.scala
def weaveTracing(implicit F: FlatMap[F], T: Trace[F], K: TraceableValue[K], V: TraceableValue[V]): Cache[F, K, V]
Attributes
- Source
- package.scala
In this article