Skip to content

Redlite

A Redis-compatible key-value store backed by SQLite. Embedded-first, persistent, zero config.

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 database
let db = Db::open("mydata.db")?;
// Set and get values
db.set("hello", b"world", None)?;
let value = db.get("hello")?;
// Some(b"world")

Or run as a server and use redis-cli:

Terminal window
./redlite --db=mydata.db
Terminal window
redis-cli -p 6767 SET foo bar
redis-cli -p 6767 GET foo
# "bar"