A multi-threaded Redis clone that supports basic commands like SET, GET, PING, and ECHO.
- Redis client is not supported on Windows and will need WSL2 to be installed on the Windows environment.
- Ensure you have dotnet (6.0) installed locally.
- Go to where
redis-clone.csprojfile located and run the server in the command line:dotnet run --project . --configuration Release "$@" - Input commands into the client command line (see below)
See below the features included in this implementation of Redis.
Ping the server to check if it is responsive.
PING
Get a response from the server.
ECHO <value>
Get the value corresponding to the key in the data store.
GET <key>
Insert into the data store a key-value pair with an optional expiration time. PX notes milliseconds.
SET <key> <value> [PX <time>]