feat: implement caching for ESPN API responses to reduce API calls

This commit is contained in:
ChuckBuilds
2025-04-19 18:25:01 -05:00
parent 09649f0a07
commit 471790c851
3 changed files with 72 additions and 110 deletions

View File

@@ -251,7 +251,7 @@ class BaseNBAManager:
return None
def _fetch_data(self, date_str: str = None) -> Optional[Dict]:
"""Fetch data from ESPN API."""
"""Fetch data from ESPN API with caching."""
if self.test_mode:
return self._load_test_data()