SingleValueStore

org.sigilaris.node.jvm.storage.SingleValueStore
See theSingleValueStore companion trait

Provides a SingleValueStore derived from a KeyValueStore using a fixed key.

Attributes

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

Members list

Value members

Concrete methods

def fromKeyValueStore[F[_], A](using kvStore: KeyValueStore[F, ByteVector, A]): SingleValueStore[F, A]

Creates a SingleValueStore backed by a KeyValueStore with a constant key.

Creates a SingleValueStore backed by a KeyValueStore with a constant key.

Type parameters

A

the value type

F

the effect type

Value parameters

kvStore

the underlying key-value store keyed by ByteVector

Attributes

Returns

a single-value store delegating to the key-value store

Source
SingleValueStore.scala