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

Review caching #225

Closed
sandorkertesz opened this issue Oct 12, 2023 · 1 comment · Fixed by #246
Closed

Review caching #225

sandorkertesz opened this issue Oct 12, 2023 · 1 comment · Fixed by #246
Assignees
Labels
enhancement New feature or request

Comments

@sandorkertesz
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

The current caching is documented at https://earthkit-data.readthedocs.io/en/latest/guide/caching.html

The problem is that the cache currently also serves as temporary space. So when caching is turned off there is nowhere to download files from URLs or services.

The task is to review the caching policies and see how we could use separate concepts for the cache and the temporary space.

Related issues:

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

Organisation

ECMWF

@sandorkertesz sandorkertesz added the enhancement New feature or request label Oct 12, 2023
@sandorkertesz sandorkertesz self-assigned this Oct 12, 2023
@sandorkertesz
Copy link
Collaborator Author

sandorkertesz commented Oct 26, 2023

Changes so far:

  • the "off" cache-policy now uses a temporary directory so all retrievals are possible to use
  • the default cache-policy was changed to "off" from "user"
  • the cache/temporary directory path can be queried as cache.directory()

See:
https://earthkit-data.readthedocs.io/en/feature-cache_and_tmp/examples/cache.html
https://earthkit-data.readthedocs.io/en/feature-cache_and_tmp/guide/caching.html

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.

1 participant