Crates.io | rlite |
lib.rs | rlite |
version | 0.0.1 |
source | src |
created_at | 2015-08-31 22:39:45.423292 |
updated_at | 2015-12-11 23:55:29.371301 |
description | Bindings to rlite database |
homepage | |
repository | https://github.com/seppo0010/rlite-rs |
max_upload_size | |
id | 2973 |
size | 8,014 |
rlite is a self-contained, serverless, zero-configuration, transactional redis-compatible database engine. rlite is to Redis what SQLite is to SQL.
rlite-rs is available on crates.io. Add the following dependency to your Cargo manifest:
[dependencies]
rlite = "0.1.0"
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()));