-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding caching decorator to cache and reuse heavy data #26
Conversation
@VincGargasson I think you need to add your |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! The .gitignore needs to be updated, as well as the requirements.txt. The rest seems fine to me, could you post some references on how you used flask_caching so that I can take a closer look please?
@frgfm I'll change this right away.
As you can see, it's quite simple and I have discovered it last week on several forums. |
@VincGargasson Nice! Thanks for the explanation! |
Let me know if you need help with that @VincGargasson 👌 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks all good! I just removed the bin files, and renamed the cache dir to .cache
for consistency
GOAL OF THIS PR
Storing in background heaviest data in a cache function and being able to reuse it within 60 sec.
Function used : @cache from
flask-caching
How it works? :
main.py
cache.memoize()
decorator between the callback and function we aimapp/.cache