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

gcsf cache #85

Open
azaz111 opened this issue Feb 28, 2022 · 1 comment
Open

gcsf cache #85

azaz111 opened this issue Feb 28, 2022 · 1 comment

Comments

@azaz111
Copy link

azaz111 commented Feb 28, 2022

Does gcsf cache file metadata? or entire files, can I somehow cache data from Google Drive and unmount it so that the program uses only the cache?
someone can help me figure it out, I'll pay for the time spent
telegram @binot

@harababurel
Copy link
Owner

It caches a few different things:

  1. File list and metadata. This is populated at startup and then updated regularly depending on the value of sync_interval, as Google Drive reports remote changes which need to be applied locally
  2. File contents. This is loaded and cached in RAM only when a file is read, such that subsequent reads are significantly faster. Can be controlled via cache_max_seconds and cache_max_items. Note that unmounting the filesystem clears the cache.
  3. Filesystem size and capacity (values reported by df), controlled with cache_statfs_seconds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants