-
Notifications
You must be signed in to change notification settings - Fork 63
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
Add ability to turn off local cache #10
Comments
Hey. Wondering what the status/thoughts are on this one. Seems like local cache is quite central to all the functionality currently, so might be tricky to implement. Asking as we have instances where we have write only access to S3 and cache logic is an issue - another, probably a lot less common than streaming, example of where ability to turn off cache would be great. |
Speculation: I wonder if perhaps |
@jayqi are you thinking that It's probably not a solution for streaming and cases when the cache itself is an issue rather than the current read required to write/open. |
Good additional discussion in #233. This is still under consideration. There is a set of functionality that depends on the cache, so those are worth enumerating. The cache gets created any time
Simplest implementation seems to be:
A few additional observations:
Other options:
|
@DayalStrub Changes to options for managing the cache were just released in the latest version. See updated methods here: https://cloudpathlib.drivendata.org/stable/caching/#clearing-the-file-cache |
Some use cases (especially if we enable streaming) may not want to keep much of a cache around at all.
We should have an option to turn off the cache entirely, which always will grab things from the server.
The text was updated successfully, but these errors were encountered: