ducktors / turborepo-remote-cache

Open source implementation of the Turborepo custom remote cache server.
https://ducktors.github.io/turborepo-remote-cache/
MIT License
1.06k stars 102 forks source link

Add garbage collection #433

Open cornedor opened 2 months ago

cornedor commented 2 months ago

🚀 Feature Proposal

Add an option to garbage collect artifacts that are older.

Motivation

The storage size can increase quickly, but never decreases.

Example

Add an environment variable where you can define the max size of the combined artifacts. Start removing artifacts when the max size is exceeded.