valkeyre 0.1.1

A key-value store, prioritizing ease of use.
Documentation
  • Coverage
  • 62.5%
    5 out of 8 items documented0 out of 6 items with examples
  • Size
  • Source code size: 10.50 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 393.47 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • drakulah/ValKeyRe
    2 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • drakulah

ValKeyRe

A key-value store, prioritizing ease of use.

Example

use std::path::PathBuf;

use valkeyre::store::Store;

fn main() {
  let store = Store::init(PathBuf::from("./"), "Valkeyre");

  let store_a = store.init_room("Table A");
  store_a.set("email", "hello@gmail.com");
  store_a.set("pass", "hello123");

  let store_b = store.init_room("Table B");
  store_b.set("email", "yo@gmail.com");
  store_b.set("pass", "yo123");

  println!(
    "{} - {}",
    store_a.get("email").unwrap(),
    store_a.get("pass").unwrap()
  );
  println!(
    "{} - {}",
    store_b.get("email").unwrap(),
    store_b.get("pass").unwrap()
  );

  // hello@gmail.com - hello123
  // yo@gmail.com - yo123
}