rlite 0.0.1

Bindings to rlite database
Documentation
  • Coverage
  • 58.33%
    7 out of 12 items documented1 out of 7 items with examples
  • Size
  • Source code size: 8.36 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.66 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Documentation
  • seppo0010/rlite-rs
    3 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • seppo0010

Interface to rlite

rlite is a self-contained, serverless, zero-configuration, transactional redis-compatible database engine. rlite is to Redis what SQLite is to SQL.

Getting Started

rlite-rs is available on crates.io. Add the following dependency to your Cargo manifest:

[dependencies]
rlite = "0.1.0"

Example

let path = Path::new("db.rld");
let rlite = Rlite::file(&path).unwrap();

rlite.write_command(&["set".as_bytes(), "key".as_bytes(), "value".as_bytes()]).unwrap();
assert_eq!(conn.read_reply().unwrap(), Reply::Status("OK".to_owned()));

conn.write_command(&["get".as_bytes(), "key".as_bytes()]).unwrap();
assert_eq!(conn.read_reply().unwrap(), Reply::Data(b"value".to_vec()));