https://github.com/typelevel/vault
Type-safe, persistent storage for values of arbitrary types
https://github.com/typelevel/vault
Last synced: 8 months ago
JSON representation
Type-safe, persistent storage for values of arbitrary types
- Host: GitHub
- URL: https://github.com/typelevel/vault
- Owner: typelevel
- License: mit
- Created: 2018-10-24T12:09:08.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2025-07-23T18:39:46.000Z (8 months ago)
- Last Synced: 2025-07-30T19:20:38.036Z (8 months ago)
- Language: Scala
- Homepage: https://typelevel.org/vault/
- Size: 1.97 MB
- Stars: 83
- Watchers: 6
- Forks: 20
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# vault [](https://maven-badges.herokuapp.com/maven-central/org.typelevel/vault_2.12) 
Vault is a tiny library that provides a single data structure called vault.
Inspiration was drawn from [HeinrichApfelmus/vault](https://github.com/HeinrichApfelmus/vault) and the original [blog post](https://apfelmus.nfshost.com/blog/2011/09/04-vault.html)
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](https://typelevel.org/vault/)
## 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:
```scala
libraryDependencies ++= Seq(
"org.typelevel" %% "vault" % ""
)
```