harababurel/gcsf

gcsf cache

Opened this issue · 1 comments

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

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.