A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/seppo0010/rlite-rs below:

seppo0010/rlite-rs: rust bindings for rlite

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.0.1"
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()));

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4