Skip to main content

No project description provided

Project description

fastapicache

fastapicache is a package that privde simple and fast caching system for the fastapi package

install

note for the double C in the name

pip install fastapiccache

usage

fast and simple

import time 
from fastapi import FastAPI
from fastapicache import fastapicache


app = FastAPI()


@app.get('/')
@fastapicache(revalidate=0)
async def index(name: str = "unknown"):
    time.sleep(4)
    return f"{name}: hello world"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastapiccache-0.1.1.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

fastapiccache-0.1.1-py3-none-any.whl (2.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page