[Scons-users] Adding support for policy based CacheDir pruning?
Gary Oberbrunner
garyo at oberbrunner.com
Thu Oct 17 16:39:53 EDT 2013
On Thu, Oct 17, 2013 at 11:21 AM, Andrew C. Morrow <
andrew.c.morrow at gmail.com> wrote:
>
> ...
> I think the utility of CacheDir would be greatly improved by implementing
> some sort of built-in cache eviction mechanism. I think a good solution to
> this would:
>
> - Allow the injection of a user designed cache limit policy.
> - Provide a default policy that capped the cache size at some modest limit
> and evicted in LRU or age order, with the size cap and age limit easily
> specified by the user.
> - Handle cache entry removal within SCons, based on the results of
> evaluating the currently active policy. The policy should not need to
> interact with the actual files in the cache or know anything about the
> cache internals.
>
> Is there interest in such a feature? Has it been attempted before? Would
> the SCons maintainers be willing to consider patches to add this sort of
> feature? Roadmap? I'd be willing to do some work towards this, but only if
> it seems possible, and stands some reasonable chance of becoming part of
> the official SCons project.
>
Yes, no, definitely, not so far, and that would be great! :-)
In other words, go for it -- it would definitely be appreciated.
--
Gary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20131017/58efe24e/attachment.html
More information about the Scons-users
mailing list