SingleValueStore

org.sigilaris.node.jvm.storage.SingleValueStore
See theSingleValueStore companion object
trait SingleValueStore[F[_], A]

Store that holds a single optional value.

Type parameters

A

the type of value stored

F

the effect type

Attributes

Companion
object
Source
SingleValueStore.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def get(): EitherT[F, DecodeFailure, Option[A]]

Retrieves the stored value.

Retrieves the stored value.

Attributes

Returns

the value if present, or None

Source
SingleValueStore.scala
def put(a: A): F[Unit]

Replaces the stored value.

Replaces the stored value.

Value parameters

a

the value to store

Attributes

Source
SingleValueStore.scala