BetterKV is a Redis-compatible in-memory key-value store written in Rust and built for low latency, high throughput, and predictable performance.
Current status: open beta.
- Redis protocol compatible for a growing command surface
- Multi-threaded server architecture built on Tokio
- Sharded in-memory engine optimized for concurrent access
- Persistence, Pub/Sub, transactions, scripting, and more are in active development across the workspace
- Authentication and ACL support are still beta and are not recommended for production use yet
BetterKV is not production-ready yet.
Use it today for:
- local development
- benchmarking
- compatibility testing
- exploratory integrations
Track development on GitHub: github.com/1jmdev/BetterKV
crates/server- BetterKV server binary (betterkv-server)crates/cli- interactive CLI client (betterkv-cli)crates/benchmark-cli- benchmark tool (betterkv-benchmark)crates/test-cli- test runner utility (betterkv-tester)crates/engine- storage engine, sharding, expiration, and core data structurescrates/protocol- RESP parsing and encodingcrates/commands- Redis command execution layercrates/types- shared protocol and command typescrates/alloc- memory allocator optimized for betterkvcrates/rehash- hash table rehashing support
Build the workspace:
cargo build --releaseStart the server:
cargo run -p betterkv-server -- --bind 127.0.0.1 --port 6379Show server flags:
cargo run -p betterkv-server -- --helpConnect with redis-cli:
redis-cli -h 127.0.0.1 -p 6379 ping
# PONGRun the interactive CLI:
cargo run -p betterkv-cli -- --host 127.0.0.1 --port 6379Run the benchmark tool:
cargo run -p betterkv-benchmark -- -h 127.0.0.1 -p 6379 -c 100 -n 100000 -P 16Run tests:
cargo testRun Clippy across the workspace:
cargo clippy --workspace --all-targets- Docs: docs.betterkv.com
- Quick start: docs.betterkv.com/quick-start
- Installation: docs.betterkv.com/installation
BetterKV is still in beta. In particular, authentication and ACL features are not fully complete and should not be relied on for production deployments yet.
Licensed under the Elastic License 2.0.
You are free to use, modify, and distribute this software. You may not provide BetterKV as a managed or hosted service to third parties without a separate license.
For a hosting or service license, contact license@1jm.dev.