It listens on TCP port 6379
and decodes RESP format and responds according to get command that the client sends.
- Ping
- Echo
- Set
- Set with expiry(milliseconds)
- Get
This server is compatible with redis-cli
so it makes it compatible with other redis clients too.
make run
To test you can use:
redis-cli PING
- Read port number from command line arguments