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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for fastapiccache-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70022f1279edf0f3684e1c073acf420631bc3662305d50c5ad5ad2604fdabaa2 |
|
MD5 | 302c153e8709a3d8f7260e9107067012 |
|
BLAKE2b-256 | a8d359b1825548f9ed747cfd498f6108e76382d91e4778e0de1089417d785813 |