Skip to content

Commit 9d454c2

Browse files
authored
Merge pull request #47 from ArielMAJ/feat/#12/fastapi-cache
Feat/#12/fastapi cache
2 parents eb1833f + 18f8569 commit 9d454c2

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

api/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "api"
3-
version = "0.5.1"
3+
version = "0.5.2"
44
description = ""
55
authors = ["ArielMAJ <ariel.maj@hotmail.com>"]
66
readme = "README.md"

api/src/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626

2727
@app.get("/{username}")
28+
@cache(expire=60 * 60 * 24)
2829
async def user_data(username: str):
2930
if get_settings().ENVIRONMENT == "DEV":
3031
logger.debug("DEV MODE")

vue-front/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "GitHub_Viz",
3-
"version": "0.5.1",
3+
"version": "0.5.2",
44
"private": true,
55
"scripts": {
66
"serve": "vue-cli-service serve",

0 commit comments

Comments
 (0)