Skip to content

added TTLCaching to backend#13

Open
magichrist wants to merge 1 commit into
ic0e:mainfrom
magichrist:feature/TTLCaching
Open

added TTLCaching to backend#13
magichrist wants to merge 1 commit into
ic0e:mainfrom
magichrist:feature/TTLCaching

Conversation

@magichrist

Copy link
Copy Markdown
Contributor

Feature: TTLCaching

it only works if uvicorn is single threaded and no --reload:

python -m uvicorn main:app --workers 1

@magichrist

Copy link
Copy Markdown
Contributor Author

tho can add redis, or use diskcache for file caching which redis I think is overkill 🥷🏻, and file based caching needs locking and releasing cache file (to prevent Race Condition) which adds complexity 💀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant