vault ![Maven Central](https://camo.githubusercontent.com/4dc4734a82b14ed064ea472696f01914cba7b8d732d1abe74098dee1d360156c/68747470733a2f2f6d6176656e2d6261646765732e6865726f6b756170702e636f6d2f6d6176656e2d63656e7472616c2f696f2e6368726973646176656e706f72742f7661756c745f322e31322f62616467652e737667)
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.11 or a later version, add the following dependencies to your build.sbt
depending on your needs:
libraryDependencies ++= Seq(
"io.chrisdavenport" %% "vault" % "<version>",
)