Skip to content

Type-safe, persistent storage for values of arbitrary types

License

Notifications You must be signed in to change notification settings

typelevel/vault

Repository files navigation

vault Maven Central Continuous Integration

Vault is a tiny library that provides a single data structure called vault.

Inspiration was drawn from HeinrichApfelmus/vault and the original blog post

A vault is a type-safe, persistent storage for values of arbitrary types. Like Ref, it should be capable of storing values of any type in it, but unlike Ref, behave like a persistent, first-class data structure.

It is analogous to a bank vault, where you can access different bank boxes with different keys; hence the name.

Microsite

Head on over to the microsite

Quick Start

To use vault in an existing SBT project with Scala 2.12 or a later version, add the following dependencies to your build.sbt depending on your needs:

libraryDependencies ++= Seq(
  "org.typelevel" %% "vault" % "<version>"
)