Step 2 - Challenge: Handling PING and ECHO Commands
In this step your goal is to create the Redis Lite server. It should start up and begin listening for clients on the port: 6379.
When a client connects, you will want to accept the connection and then begin handling commands sent via the RESP protocol - using the serialiser and deserialiser you built in Step 1.
The simplest and most obvious command to implement is PING.
When your Redis server receives the command ping, it should response with PONG.
% redis-cli PING
PONG
After that you should implement the ECHO command so we can be terribly traditional and do “Hello World”:
% redis-cli ECHO "Hello World"
"Hello World"