Simple project of a mini REDIS implementation.
Main purpose is academic in order to understand Redis commands and how could be exposed through an API.
This project is divided in 2 main apps and a utils module
We will find here our mini Redis library, which could be used directly through its singleton instance.
from mini_redis import MiniRedis
# Set a value using `x1` as key
MiniRedis.instance().set('x1', 'Wolverine')
# Get previous value
MiniRedis.instance().get('x1')
Simple HTTP server using flask.
Simple utils to help about data parsing and singleton uses
- Python Version: 3.8+
Required Libraries
Development Libraries
Im using Poetry as a dependency management. So once you set your environment to be python 3.8^ compatible you need to run
pip install poetry
poetry install
In case you are using docker there is a Dockerfile that will build the project image and will start the server.
docker build .
docker run <container id>
In order simplify tasks I created a make file that have some useful commands
make test
make start
make seed
make docker_build
make docker_start