Skip to content
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

Longer cache expiration delay in options #196

Closed
gmaze opened this issue Mar 23, 2022 · 3 comments · Fixed by #262
Closed

Longer cache expiration delay in options #196

gmaze opened this issue Mar 23, 2022 · 3 comments · Fixed by #262
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@gmaze
Copy link
Member

gmaze commented Mar 23, 2022

Argopy uses a refresh rate for cache of 1 day, since this is the update frequency of the Ifremer erddap and GDAC ftp.
But some users may not need the most recent data, or simply a longer latency in data refresh rate.

So would it be possible to add an option to control the cache expiration delay?

Example

argopy.set_options(cache_expiration=86400*10)
@gmaze gmaze added enhancement New feature or request good first issue Good for newcomers labels Mar 23, 2022
@gmaze
Copy link
Member Author

gmaze commented Mar 23, 2022

The cache expiration delay is set in the file store:

expiry_time=86400, cache_check=10)

@github-actions
Copy link

This issue was marked as staled automatically because it has not seen any activity in 90 days

@github-actions github-actions bot added the stale No activity over the last 90 days label Jun 22, 2022
@gmaze gmaze removed the stale No activity over the last 90 days label Sep 23, 2022
@github-actions
Copy link

This issue was marked as staled automatically because it has not seen any activity in 90 days

@github-actions github-actions bot added the stale No activity over the last 90 days label Dec 22, 2022
@gmaze gmaze removed the stale No activity over the last 90 days label May 2, 2023
@gmaze gmaze closed this as completed in #262 May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant