simple-storage

Crates.iosimple-storage
lib.rssimple-storage
version0.0.2
sourcesrc
created_at2021-05-25 23:03:57.756691
updated_at2021-05-26 20:25:09.040659
descriptionSuper simple key-value storage.
homepagehttps://github.com/rawnly/simple-storage
repository
max_upload_size
id402077
size6,458
Federico (rawnly)

documentation

README

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();
  }

Commit count: 0

cargo fmt