ExpDev07 / coronavirus-tracker-api

🦠 A simple and fast (< 200ms) API for tracking the global coronavirus (COVID-19, SARS-CoV-2) outbreak. It's written in python using the 🔥 FastAPI framework. Supports multiple sources!
https://coronavirus-tracker-api.herokuapp.com
GNU General Public License v3.0
1.59k stars 323 forks source link

Add LocationCachingProxy to add caching to location requests #468

Closed hughie-coles closed 3 years ago

hughie-coles commented 3 years ago

Here I am applying the proxy pattern to add caching to our location API calls. This will improve performance. The caching period is also configurable

Kilo59 commented 3 years ago

Thanks for the PR. The caching logic on this app has long been in need of a rework!

It may take me a bit to work through the PR but I'll try to do it soon.

hughie-coles commented 3 years ago

Honestly, I'm just doing these PRs as part of a class project, so no need to spend any effort on them