Embedded-first
Use as a library in your Rust application. No separate server process needed.
Embedded-first
Use as a library in your Rust application. No separate server process needed.
Disk is cheap
Persistent storage without Redis’s memory constraints. SQLite handles the heavy lifting.
Redis compatible
Existing Redis clients just work. Drop-in replacement for most use cases.
Zero config
ACID transactions, durability, and reliability out of the box with SQLite.
use redlite::Db;
// Open a persistent databaselet db = Db::open("mydata.db")?;
// Set and get valuesdb.set("hello", b"world", None)?;let value = db.get("hello")?;// Some(b"world")Or run as a server and use redis-cli:
./redlite --db=mydata.dbredis-cli -p 6767 SET foo barredis-cli -p 6767 GET foo# "bar"