SwayStores
Factory for creating SwayDB-backed persistent store resources with automatic lifecycle management.
Attributes
- Source
- SwayStores.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SwayStores.type
Members list
Value members
Concrete methods
Creates a SwayDB-backed KeyValueStore resource that is closed when the resource is released.
Creates a SwayDB-backed KeyValueStore resource that is closed when the resource is released.
Type parameters
- K
-
the key type
- V
-
the value type
Value parameters
- dir
-
the filesystem directory for the SwayDB storage
Attributes
- Returns
-
a resource that yields a persistent key-value store
- Source
- SwayStores.scala
Creates a SwayDB-backed SingleValueStore resource.
Creates a SwayDB-backed SingleValueStore resource.
Type parameters
- V
-
the value type
Value parameters
- dir
-
the filesystem directory for the SwayDB storage
Attributes
- Returns
-
a resource that yields a persistent single-value store
- Source
- SwayStores.scala
Creates a SwayDB-backed StoreIndex resource with range query support.
Creates a SwayDB-backed StoreIndex resource with range query support.
Type parameters
- K
-
the key type
- V
-
the value type
Value parameters
- dir
-
the filesystem directory for the SwayDB storage
Attributes
- Returns
-
a resource that yields a persistent store index
- Source
- SwayStores.scala