The default implementation of an in-memory KeyValueStore.
The default implementation of an in-memory KeyValueStore.
Uses a scala.collection.concurrent.TrieMap
as the underlying implementation
The default implementation of an in-memory KeyValueStore.
The default implementation of an in-memory KeyValueStore.
Uses a scala.collection.concurrent.TrieMap
as the underlying implementation
The initial state of the key value store to begin with
Returns an interpreter of KeyValueStore[K, V, ?]
into Task
, given a
TaskRef[Map[K, V]]
.
Interpret KeyValueStore[K, V, ?]
into AtomicRef[Map[K, V], ?]
, plus Free.
Interpret KeyValueStore[K, V, ?]
into AtomicRef[Map[K, V], ?]
, plus Free.
Usage: toAtomicRef[K, V]()
.
Returns an interpreter of KeyValueStore[K, V, ?]
into F[S, ?]
,
given a Lens[S, Map[K, V]]
and MonadState[F, S]
.
Returns an interpreter of KeyValueStore[K, V, ?]
into F[S, ?]
,
given a Lens[S, Map[K, V]]
and MonadState[F, S]
.
NB: Uses partial application of F[_, _]
for better type inference, usage:
toState[F](lens)