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

Add a limit to the size of the local cache #11

Open
pjbull opened this issue Aug 17, 2020 · 0 comments
Open

Add a limit to the size of the local cache #11

pjbull opened this issue Aug 17, 2020 · 0 comments
Labels
caching enhancement New feature or request

Comments

@pjbull
Copy link
Member

pjbull commented Aug 17, 2020

Is there a package that will implement this for us?

We may need to create an LRU cache that we check the size of and remove files before downloading more. The tricky part about this being LRU cache is that we manipulate atime and mtime to match the cloud exactly. Perhaps we can abuse ctime to store the cached date so that we can sort by what has been downloaded most recently? Or maybe we stop overriding atime and trust that?

Also needs research: are there fast platform independent ways to estimate size of a directory?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
caching enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant