Have a mount flag to keep files in cache after uploading #4072
Replies: 2 comments 3 replies
-
Files are cached once downloaded from the backend. |
Beta Was this translation helpful? Give feedback.
-
Hi again. I'm not a Go developer and don't have an environment to test and modify the code. Thanks |
Beta Was this translation helpful? Give feedback.
-
Hi, guys!
I know by design that JuiceFS after uploading a file to the backend it's deleted from the cache (only small files are kept there). It would be nice to have a flag on the mount command like "--keep-cache" in order to keep big files in cache after uploading.
I know that in file: pkg/chunk/cached_store.go (line 366) we have this:
But not sure if only based on the flag we accomplish this or it has other things to consider.
Beta Was this translation helpful? Give feedback.
All reactions