Open
Description
The .wireit/<script>/cache
directory currently can grow indefinitely. We should implement a garbage collection strategy to cap the size of this directory.
An LRU cache with a configurable maximum number of entries seems like what we want.
We will want to make sure we have an efficient way to maintain the cache hit rate data which scales well with the size of the cache. We will probably want some kind of on-disk index file that lets us read/write cache hit rates efficiently, to determine which cache entry needs to be deleted when the cap is hit. A doubly-linked-list implemented in the filesystem itself with symlinks (or just files containing SHAs) could also be an interesting way to do this.
Metadata
Metadata
Assignees
Labels
No labels