package eff
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- eff
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- type /=[M[_], R] = MemberInOut[M, R]
- type <=[M[_], R] = Member[M, R]
- case class ExecutorServices(executorServiceEval: Eval[ExecutorService], scheduledExecutorEval: Eval[ScheduledExecutorService], executionContextEval: Eval[ExecutionContext]) extends Product with Serializable
- trait FutureCreation extends FutureTypes
- trait FutureEffect extends FutureCreation with FutureInterpretation
- trait FutureInterpretation extends FutureTypes
- trait FutureTypes extends AnyRef
- case class GetCache() extends Memoized[Cache] with Product with Serializable
- trait MemoCreation extends MemoTypes
-
trait
MemoEffect extends MemoTypes with MemoCreation with MemoInterpretation
Memoization effect
Memoization effect
Memoize a computation for a given key
This effect can be interpreted with a cache implemented with many different libraries. See Cache.scala for 2 default implementations:
- one concurrent hashmap (meaning an unbounded cache)
- one concurrent hashmap with weak references (to evict entries based on garbage collection)
You can implement your own version using ScalaCache for example
- trait MemoInterpretation extends MemoTypes
- trait MemoTypes extends AnyRef
- sealed trait Memoized[A] extends AnyRef
- case class Store[A](key: AnyRef, a: () ⇒ A) extends Memoized[A] with Product with Serializable
- final case class TimedFuture[A](callback: (Scheduler, ExecutionContext) ⇒ Future[A], timeout: Option[FiniteDuration] = None) extends Product with Serializable
- type |=[M[_], R] = MemberIn[M, R]
Value Members
- object ExecutorServices extends Schedulers with Serializable
- object FutureCreation extends FutureCreation
- object FutureEffect extends FutureEffect
- object FutureInterpretation extends FutureInterpretation
- object MemoEffect extends MemoEffect
- object MemoInterpretation extends MemoInterpretation
- object MemoTypes extends MemoTypes
- object TimedFuture extends Serializable
- object future extends FutureCreation with FutureInterpretation
- object memo extends MemoCreation with MemoInterpretation