KeyValueSwayStore

org.sigilaris.node.jvm.storage.swaydb.KeyValueSwayStore
See theKeyValueSwayStore companion class

Factory methods for creating KeyValueSwayStore instances.

Attributes

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

Members list

Value members

Concrete methods

def apply[K, V](dir: Path)(using evidence$1: ByteEncoder[K], evidence$2: ByteDecoder[K], evidence$3: ByteEncoder[V], evidence$4: ByteDecoder[V], Async[IO]): IO[KeyValueSwayStore[K, V]]

Creates a new KeyValueSwayStore by opening a persistent SwayDB map at the given directory.

Creates a new KeyValueSwayStore by opening a persistent SwayDB map at the given directory.

Type parameters

K

the key type

V

the value type

Value parameters

dir

the filesystem directory for the SwayDB storage

Attributes

Returns

an IO that yields the constructed store

Source
KeyValueSwayStore.scala