This is my solution to "Build Your Own Redis" Challenge.
It supports the following commands:
PING
SET
GET
ECHO
PSYNC
*INFO
*
* partial support
You can start a local server by running
./spawn_redis_server.sh
This will start a redis server on port 6379 by default.
You can now spawn another replica and have it synchronize with master by running
./spawn_redis_server.sh --port 3000 --replicaof localhost 6379
Check if the server is running correctly by running the original redis-cli
$ redis-cli ping
PONG