lancachenet / monolithic

A monolithic lancache service capable of caching all CDNs in a single instance
https://hub.docker.com/r/lancachenet/monolithic
Other
728 stars 73 forks source link

Use two different locations to save data? #84

Closed orangedude27 closed 4 years ago

orangedude27 commented 4 years ago

This is more of a suggestion or curiosity.

Is there any way to make this a 2 step caching system? When a set of data becomes 30 days old, but we still wanna keep the data in case there are still downloads later on, can we put it in a different location but still be able to read it from the caching system?

Thanks

arnili commented 4 years ago

Maybe handle this on the (virtual) filesystem itself: https://github.com/trapexit/mergerfs

You can simply move around files on the backends as you wish without affecting the merged view the virtual filesystem exposes.

MathewBurnett commented 4 years ago

the current CACHE_MAX_AGE default is 10 years i believe. So a file is only dropped from the cache if you have run out of space and the oldest stuff is evicted to make room.