FunctionalInMemoryReactionRepository
core.repositories.FunctionalInMemoryReactionRepository
class FunctionalInMemoryReactionRepository[F[_]](state: Ref[F, Map[ReactionId, Reaction]])(implicit evidence$1: Sync[F]) extends ReactionRepository[F]
An in-memory implementation of ReactionRepository
for testing and local use.
Type parameters
- F
-
Effect type, such as
IO
orSyncIO
.
Value parameters
- state
-
A
Ref
encapsulating the mutable map of reactions.
Attributes
- Source
- InMemoryReactionRepository.scala
- Graph
-
- Supertypes
Members list
In this article