Skip to content

add caching #34

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

Closed
Tracked by #11
dshemetov opened this issue Jul 16, 2024 · 0 comments · Fixed by #37
Closed
Tracked by #11

add caching #34

dshemetov opened this issue Jul 16, 2024 · 0 comments · Fixed by #37
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@dshemetov
Copy link
Contributor

dshemetov commented Jul 16, 2024

  • add a cache argument to EpidataCall object
    • internally, if USE_EPIDATPY_CACHE env var is set to true, turn cache on
    • overwrite with whatever is passed in to the EpidataCall object
  • if cache is on, cache result to XDG_CACHE_HOME (you can use appdirs user_cache_dir)
  • if caching is on and the user is downloading recent data, print a warning about the cache becoming stale
  • add cache timeout setting that will consider a cache stale after a certain amount of time
@dshemetov dshemetov mentioned this issue Jul 16, 2024
16 tasks
@dshemetov dshemetov added this to the v1.0 milestone Jul 16, 2024
@dshemetov dshemetov added the enhancement New feature or request label Jul 16, 2024
@rzats rzats mentioned this issue Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants