Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

redis-api-service

A simple Redis API service built with FastAPI. Exposes GET, SET, and SETEX operations over HTTP with API key authentication.

Endpoints

  • GET /get/{key} — Retrieve a value by key
  • POST /set — Set a key-value pair
  • POST /setex — Set a key-value pair with TTL (seconds)

Auth

Pass your API key in the X-API-Key header on every request.

Setup

pip install -r requirements.txt
cp .env.example .env   # set API_KEY and REDIS_URL
uvicorn main:app --reload

About

Simple Redis API service with FastAPI and auth key

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages