2 releases
0.0.2 | May 26, 2021 |
---|---|
0.0.1 | May 25, 2021 |
#226 in #store
5KB
82 lines
Simple Storage
Simple, fast and easy to use key-value store.
Disclaimer
This project is not intended to be used for a production environment.
Usage
use simple_storage::{Storage, Value};
fn main() {
let mut storage = Storage::new("db.json");
storage.pull();
// add key
storage
.put("username", Value::String("rawnly"));
// retrive key
let username = storage
.get("username")
.to_string()
.unwrap();
}
Dependencies
~0.7–1.6MB
~34K SLoC