This is an archive of the discontinued Mercurial Phabricator instance.

util: add a popoldest() method to lrucachedict
ClosedPublic

Authored by indygreg on Sep 6 2018, 9:17 PM.

Details

Summary

This allows consumers to prune the oldest item from the cache. This
could be useful for e.g. a consumer that wishes for the size of
items tracked by the cache to remain under a high water mark.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

indygreg created this revision.Sep 6 2018, 9:17 PM
This revision was automatically updated to reflect the committed changes.