Explore projects
Rustintermediatebackend
Mini Redis Server in Rust
Partial implementation of the Redis protocol (RESP) in Rust with support for String, List, Hash, and EXPIRE command.
5 steps
Project steps
- 01
RESP parser
Parses the Redis Serialization Protocol (RESP2) using nom or manually.
- 02
Async TCP server
Tokio TCP listener, one task per client connection.
- 03
Concurrent storage
DashMap<String, RedisValue> where RedisValue = String | List | Hash.
- 04
Basic commands
GET, SET, DEL, LPUSH, LPOP, HGET, HSET, KEYS.
- 05
TTL & EXPIRE
Background task that decrements TTLs and deletes expired keys.
Recommended resources
Ready to build this?
Fork the repo on GitHub and start building. A mentor will review your code when you open a PR.
5 steps
Tech stack
Rusttokiobytesdashmap