Open
Description
It would be convenient to set up a strategy like LRU instead of removing everything or by time #678.
Use cases:
dvc gc --stragegy LRU 10Gb
- release 10Gb from cachedvc config Core.LRU_Limit 20Gb && dvc run -d input/ -o output.tsv Rscript
- it will GC automaticaly as a result ofdvc run
if cache size if more then 20Gb
This should work on a shared cache as well for multiple users.
It looks like this appproach will require a special state file in a cache directory to support LRU strategy and some of the DVC commands will modify the file: dvc run
, dvc repro
etc.