| Crates.io | simple-storage |
| lib.rs | simple-storage |
| version | 0.0.2 |
| created_at | 2021-05-25 23:03:57.756691+00 |
| updated_at | 2021-05-26 20:25:09.040659+00 |
| description | Super simple key-value storage. |
| homepage | https://github.com/rawnly/simple-storage |
| repository | |
| max_upload_size | |
| id | 402077 |
| size | 6,458 |
Simple, fast and easy to use key-value store.
This project is not intended to be used for a production environment.
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();
}