This is a simple Redis cache server written in rust.
- Ensure you have Rust and Cargo installed locally.
- Run
./spawn_redis_server.sh
to run you Redis servers.
- ping
- echo
- get
- set
- others ==>
todo!()
This project is divided into 2 main parts, bin main.rs
and lib lib.rs
.
It has only one function to do, and that is to execute the rudis::startup::run()
function.
Our library is partitioned into startup
, cache.rs
, operations
and resp
.
This the startup point of our server it is responsible for running the listener, handling connection, initializing the cache and priority queue, and spawns a worker thread that removes temporary entries pushed into cache.
This is where our Cache
and PriorityQueue
are defined.
This is where our operations are implemented right now rudis
supports only 4 operations ping
, echo
, get
and set
.
This is where everything related to RESP is implemented, parser buffer and errors.