api: add tooling for keeping a local cache
This commit is contained in:
parent
51349c297b
commit
bc7e74f28d
4 changed files with 22 additions and 0 deletions
|
|
@ -30,6 +30,9 @@ async def lifespan(app: FastAPI):
|
|||
client_id="dooris",
|
||||
client_secret="dp9HhnvUhAtKm3pRnxfGA7q8Nwrd1td8",
|
||||
)
|
||||
|
||||
app.extra["cache"] = TTLCache(maxsize=64, ttl=30 * 60)
|
||||
|
||||
yield
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue