kahing / catfs

Cache AnyThing filesystem written in Rust
Apache License 2.0
846 stars 54 forks source link

caching rules? #11

Closed casouri closed 6 years ago

casouri commented 6 years ago

What is the specific rule/algorithm for caching? Is it by time/space? And could it be customized?

kahing commented 6 years ago

There's no customization beyond the options listed in --help. I don't understand the rest of the questions

casouri commented 6 years ago

I mean deleting cache files that have a timestamp older than, for example, a month; or set a maximum space that particular directory can use.

kahing commented 6 years ago

Eviction policy is LRU, and you can only set usage percentage for the entire mount point. If you don't see it under --help, it's not implemented