A simplified Redis clone built using Python for educational purposes.
- Basic TCP server
- Command parser
- GET, SET, DEL commands
- Persistence
- Multi-threading
- Python 3.x
- git (optional)
-
Clone the repository:
git clone https://github.com/your-username/redis-py.git
-
Navigate to the project directory:
git clone https://github.com/your-username/redis-py.git
-
(Optional) Create and activate a virtual environment:
python3 -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Run the server from project root:
python3 src/server.py
The server will start and listen for incoming connections on 127.0.0.1:6379.
Use Telnet to manually test the server.
-
Open a new terminal window.
-
Run the following:
telnet 127.0.0.1 6379
You can now type commands and see responses from the server.
This project is licensed under the MIT License.