Skip to content

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

Open

Description

@pjbull

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?

Activity

  1. added
    enhancement
    on Oct 2, 2020
  2. added
    caching
    on May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cachingenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions