Creating a API using FastAPI with REDIS Database

FILE DETAILS :

HASH.PY : Create hashes using hset and add them into redis db

CONNECTION.PY : Made a connection with Redis db using redis_cache

MAIN.PY : Access db with GET,SET,and POST methods


RUN FASTAPI SERVER

RUN FASTAPI : uvicorn main:app --reload


COMMANDS :

START REDIS SERVER : redis-server

START REDIS SERVER : redis-server --port 6360

START REDIS SERVER : /etc/init.d/redis-server start

STOP REDIS SERVER : /etc/init.d/redis-server stop

STOP REDIS SERVER : sudo service redis-server stop

START REDIS CLIENT : redis-cli

GET REDIS KEYS : key *


INSTALL REQUIREMENTS

pip install -r requirements.txt